Skip to content
Advertisement

Update Salesforce field with Google App Script

I can get a case like this:

JavaScript

This returns

JavaScript

I would like to update Document_No__c to myString

I was expecting to be able to change this to a patch and add the payload like this:

JavaScript

However this is returning the error:

JavaScript

Advertisement

Answer

I needed to point to the right end point, as well as use @Tanaike’s change to the payload. Completed code example is:

JavaScript

This is confirmed by the response:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement