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
Nikhil_JNikhil_J 

How to insert Null Value of a field in API 8.0

I am Trying to insert a field with null but i am getting error of Dupliacte record ,Using API 8.0
 
 
SiddharthSiddharth
Hi Nikhil,
 
Use fieldsToNull property of sObject. Which actually accepts the field name(s) in the array of that type. So you can check that whiel creating the XMLElement that if the value is null then add it to the FieldsToNull. Hope this will help you out.
 
Regards
Siddharth