SOQL Query
A 2-step recipe with Salesforce. We can help you get access.
Recipe · 2 steps
SOQL Query
with Salesforce
Run a SOQL query and page the next batch of results when more remain.
- Execute the SOQL query. Returns totalSize, a done flag, the first page of records, and a nextRecordsUrl when more pages remain.
- Fetch the next page of query results using the query id taken from the previous response's nextRecordsUrl. Repeat until the done flag is true.
What you'll need to have ready
- soql: The SOQL query string to execute (e.g. SELECT Id, Name FROM Account ORDER BY CreatedDate DESC LIMIT 500).
- queryId: The query id token taken from the trailing segment of a previous response's nextRecordsUrl, used to fetch the next page of results.
For your developer
Arazzo workflow salesforce:soql-query, 2 operations: executeQuery → getNextQueryPage. Specs on APIs.io.