Query (SOQL)
Run a SOQL query and return all matching records as a table (all result pages are read).
Command in the Salesforce toolkit · id ooa.salesforce/query · 8 inputs (1 required), 3 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Instance address (URL) | String | No | Instance URL, e.g. https://yourcompany.my.salesforce.com. | |
| Access token | Credential | No | OAuth access token from the vault. Or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| SOQL | String | Yes | SOQL query. | |
| Maximum records | Number | No | 50000 | Safety limit. |
| API version | String | No | v61.0 | REST API version. |
| Include deleted | Boolean | No | false | Also return deleted and archived records (queryAll). |
| Batch size | Number | No | 0 | Records per page (200-2000); Salesforce's default when 0. |
| Parameters | Dictionary | No | Values for :name in the SOQL, quoted and escaped for you, e.g. WHERE LastName = :name. A list becomes (a, b) for IN. Safer than putting values into the text. |
Outputs
| Output | Type | What it is |
|---|---|---|
| table | Table | Records. |
| count | Number | Number of records. |
| total_size | Number | Number of matching records Salesforce reports, which can be more than were read. |