Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Instance address (URL)StringNoInstance URL, e.g. https://yourcompany.my.salesforce.com.
Access tokenCredentialNoOAuth 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)StringYesObject API name.
RecordsTableYesOne row per record; the column names are the field API names (an Id column to update).
OperationStringNocreateCreate: new records. Update: change the records in the Id column. Upsert: create or update by the external id field.
External ID fieldStringNoFor upsert: the external id field that finds an existing record.
All or noneBooleanNofalseWrite 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 versionStringNov61.0REST API version.

Outputs​

OutputTypeWhat it is
resultsTableOne row per record: row (1, 2, ...), id, success, created, error.
succeededNumberHow many records were written.
failedNumberHow many were not.