Save many records
Write the rows of a Data Table as records, 200 a call (Salesforce's collections API), and get a result for each row.
Command in the Salesforce toolkit · id ooa.salesforce/save_records · 8 inputs (2 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. | |
| Object (API name) | String | Yes | Object API name. | |
| Records | Table | Yes | One row per record; the column names are the field API names (an Id column to update). | |
| Operation | String | No | create | Create: new records. Update: change the records in the Id column. Upsert: create or update by the external id field. |
| External ID field | String | No | For upsert: the external id field that finds an existing record. | |
| All or none | Boolean | No | false | Write a call's records only if all of them can be written (otherwise the good ones are written and the others get an error). |
| API version | String | No | v61.0 | REST API version. |
Outputs
| Output | Type | What it is |
|---|---|---|
| results | Table | One row per record: row (1, 2, ...), id, success, created, error. |
| succeeded | Number | How many records were written. |
| failed | Number | How many were not. |