Upsert by external id
Update the record whose external id field matches, or create it when none matches.
Command in the Salesforce toolkit · id ooa.salesforce/upsert_by_external_id · 7 inputs (4 required), 2 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. | |
| External ID field | String | Yes | API name of the external id field. | |
| External ID value | String | Yes | External id value to match. | |
| Fields | Dictionary | Yes | Field name to value (do not repeat the external id field). | |
| API version | String | No | v61.0 | REST API version. |
Outputs
| Output | Type | What it is |
|---|---|---|
| id | String | Record id (empty when Salesforce does not return it for an update). |
| created | Boolean | True when a new record was created. |