You need to sign in to do that
Don't have an account?
Maqsood 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??
<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??