+ Start a Discussion

partially updating objects

When doing updates do I need to grab all fields of an object so that I don't null out fields that I haven't selected?

Hi Jason,

No.  When you create a new instance of an object, only the fields that you set will be updated or created.  If you need to null a field, then you include the name of the field in the fields to null parameter of the sobject.

OK, thanks. That's what the docs sounded like they were saying, I just wanted to verify that I had interpreted them properly.