salesforce_upsert_record
Upsert Salesforce records using an external ID: update if found, create if missing.
Instructions
Upsert a record using an external ID field.
If a record with the external ID exists, it will be updated. Otherwise, a new record will be created.
Args: sobject: SObject type (e.g., 'Account', 'Contact') external_id_field: Name of the external ID field data: Record data including the external ID field value. Example: {"External_Id__c": "EXT-001", "Name": "Acme Corp"}
Returns: Upsert result with success status
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| sobject | Yes | ||
| external_id_field | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||