capabilities.work

SOQL Query and Update

A 2-step recipe with Salesforce Experience Cloud. We can help you get access.

Recipe · 2 steps

SOQL Query and Update

Locate a record with SOQL and update the first match.

  1. Execute the SOQL query and capture the first record's Id and the total match count.
  2. Patch the first matched record with the supplied field values. Returns no body on success.
What you'll need to have ready
  • accessToken: OAuth 2.0 bearer token for the Salesforce instance.
  • soql: SOQL query string (must SELECT Id) used to locate the target record.
  • sObjectName: API name of the object whose record will be updated.
  • updateFields: Field name/value pairs to apply to the matched record.
For your developer

Arazzo workflow salesforce-experience-cloud:soql-query-update, 2 operations: executeQuery → updateSObjectRecord. Specs on APIs.io.