You need to sign in to do that
Don't have an account?
mobile1.390759152613193E12
New or Update record through Rest API fails if you pass a date field empty.
Hi, I am receiving the following message when trying to create an Event fields throught the mobilesdk REST API:
{"errorCode":"JSON_PARSER_ERROR","message":"Cannot deserialize instance of date from VALUE_STRING value at [line:1, column:32]"}]
It is using a patch call with the following payload:
Date__c: ""
Date_time__c: ""
EndDateTime: "2014-03-19T13:04:34.00Z"
OwnerId: "005E0000000eHwWIAU"
StartDateTime: "2014-03-19T13:04:30.00Z"
Subject: ""
WhatId: ""
WhoId: ""
Is this normal? How can I save a record with a date or datetime field with empty value?
Thanks for replying
Maurizio
{"errorCode":"JSON_PARSER_ERROR","message":"Cannot deserialize instance of date from VALUE_STRING value at [line:1, column:32]"}]
It is using a patch call with the following payload:
Date__c: ""
Date_time__c: ""
EndDateTime: "2014-03-19T13:04:34.00Z"
OwnerId: "005E0000000eHwWIAU"
StartDateTime: "2014-03-19T13:04:30.00Z"
Subject: ""
WhatId: ""
WhoId: ""
Is this normal? How can I save a record with a date or datetime field with empty value?
Thanks for replying
Maurizio
It really looks a Bug in the API. How can I update to null or "" value a date or datetime field using the REST API?
For example I can't delete the Birthdate of a contact through a Mobile Application?
Thanks a lot for the support
Maurizio.
Thanks for the help
{
"Date__c":null
}