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
Maqsood AhmadMaqsood Ahmad 

Custom Date field not updating to null through REST API

I'm using REST API and updating a custom date field to null. My xml has below to represent null
<Registration_Date__c xsi:nil="true" /> which is mentioned at https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/datafiles_xml_valid_records.htm

But' it's not clearing/flushing or setting null in sales force as I still can see old date in Registration field after the update.
It does update all other the fields but not the date and I do not get any error back. I get status code 204 back which is success.

When I set a date like below in xml
<Registration_Date__c>2017-05-15T00:00:00Z</Registration_Date__c>
It works and does update that date in Registration field.

Any idea why it's not updating to null??