The UPDATE action updates an existing Salesforce record.
Use this action when a process needs to modify information stored in Salesforce, such as account details, contact information, opportunity data, or custom object records. The action identifies a Salesforce record using its object type and record ID. The values provided in the JSON payload are sent to Salesforce and applied to the existing record. Salesforce validates the submitted values and updates the record if the request is successful.
The input parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| SObjectName | String | Required | The name of the Salesforce object to update, such as Account, Contact, Opportunity, or a custom object. |
| SObjectId | String | Required | The unique Salesforce identifier of the record to update. |
| salesforcePayload | JSON | Required |
A JSON object containing the field names and values for the Salesforce record being created. The structure of the payload depends on the selected Salesforce object and its available fields. See the Salesforce API documentation on Working with Records and REST API Reference for details of the fields contained in the JSON structure. |
The output parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| salesforceStatus | String | Optional | The HTTP status code returned by Salesforce. Use this value to determine whether the update completed successfully. |