+ Start a Discussion

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
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.