You need to sign in to do that
Don't have an account?

Using REST API - how to update a record with a cleared record field?
I am using the REST API with XML and the HTTP PATCH method in order to update individual records e.g. Account. It works fine as long as the updated record have values in all its (xml) fields. But I cannot get it to work when I want to clear a specific field.
For example, lets say I want an Account record's Description field to become emtpy. I have tried variois ways below but nothing seems to work...
<root> <Description></Description> !-- also tried null, nillable etc --> </root>
Thanks in advance
The only thing that seems to work is:
Not sure if this is the most proper way to set a field to NULL but it works(!) and hopefully it would help someone else.
I would appreciate if the Salesforce REST documentation would be upgraded..