Salesforce:Update Record
Controlled node
Overview
Change selected fields on an existing Salesforce record.
Update one existing Salesforce record. Supply only the fields you intend to change.
Inputs
| Input | Type | Description |
|---|---|---|
| run | Event | Triggers this operation. |
| sobjectAPIName | Text | Required Salesforce object API name, such as Account, Contact or a custom object name ending in __c. Use the API name, not a display label. |
| recordId | Text | Required record ID. Query results use Id; Create Record returns id. |
| data | Data | Required object mapping field API names to new values. Omitted fields are left unchanged. |
Properties
| Setting | Type | Description |
|---|---|---|
| connection | Connection | Select an authenticated Salesforce connection from this project. The connected account’s object and field permissions apply. |
Outputs
| Output | Type | Description |
|---|---|---|
| result | Data | { "success": true } on success. Failures can contain error. The updated record is not returned. |
| done | Event | Fires when the node returns, including when it returns an error result. Check the data output before continuing. |
Check the target object and record ID before running. Field types, writable-field permissions and Salesforce validation rules still apply. Query the record afterwards if you need its updated contents.
Example
Set sobjectAPIName to Account, supply the target account’s Id as recordId, and connect a Data node containing { "Phone": "+44 20 7946 0000" } to data. Trigger run and check result.success on done.