With the Rest Toolkit, creating or updating an optional date field with an empty string results in an Invalid date error. Using null
instead results in another error: Argument 1 cannot be null.
How can you make the field null?
client.update('Transaction__c', 'a0Ni0000000H1kWCHA', {Name: "1078", Date__c: "2013-03-14", Due_Date__c: ""}, function(){})
null
?null
to no avail.