I was testing updating a custom object in Postman and specifying invalid values in my JSON body. In one case, I specified a custom date field with a decimal value (1533132317.34) and got back the following response.
Code: Select all
{
"errorMessage": "setting property",
"errorMessageKey": "errors.errorSettingProperty",
"errorCode": 500,
"errors": [
{
"detailMessage": "cannot convert value to data type for field date1",
"propertyName": "date1",
"severity": "ERROR",
"type": "IMPROPERLY_STRUCTURED_SCALAR"
}
],
"entityName": "PlacementCustomObjectInstance1"
}
It's probably just a minor edge case but I figured you would want to know and fix the return code in this scenario.
Cheers,
Brian