GraphQL Query and REST Update
A 2-step recipe with Salesforce Experience Cloud. We can help you get access.
Recipe · 2 steps
GraphQL Query and REST Update
Resolve a record with GraphQL and update it with the REST API.
- Execute the GraphQL query against the UIAPI schema and capture any errors array.
- Patch the resolved record via the sObject REST endpoint. Returns no body on success.
What you'll need to have ready
- accessToken: OAuth 2.0 bearer token for the Salesforce instance.
- graphqlQuery: GraphQL query string targeting the uiapi namespace.
- variables: Variables for the parameterized GraphQL query.
- sObjectName: API name of the object to update.
- recordId: The record ID to update (resolved from the query results).
- updateFields: Field name/value pairs to apply to the record.
For your developer
Arazzo workflow salesforce-experience-cloud:graphql-query-rest-update, 2 operations: executeGraphqlQuery → updateSObjectRecord. Specs on APIs.io.