Skip to main content

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​

InputTypeDescription
runEventTriggers this operation.
sobjectAPINameTextRequired Salesforce object API name, such as Account, Contact or a custom object name ending in __c. Use the API name, not a display label.
recordIdTextRequired record ID. Query results use Id; Create Record returns id.
dataDataRequired object mapping field API names to new values. Omitted fields are left unchanged.

Properties​

SettingTypeDescription
connectionConnectionSelect an authenticated Salesforce connection from this project. The connected account’s object and field permissions apply.

Outputs​

OutputTypeDescription
resultData{ "success": true } on success. Failures can contain error. The updated record is not returned.
doneEventFires 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.

Project connections