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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sobject": "<sobject>",
"external_id_field": "<external_id_field>",
"data": "<data>"
},
"name": "salesforce_upsert_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| sobject | Yes | ||
| external_id_field | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||