function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JasonRogersJasonRogers 

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?
DevAngelDevAngel

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.

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