salesforce_update_records
Update 1 to 200 existing Salesforce records in one approved call, all or none. Match by Id or External ID, change only listed fields, and reject unmatched or ambiguous keys.
Instructions
Change 1 to 200 existing records of one Salesforce object type in one approval, all or none. Each record is found by key_field: Id (default) or a field marked External ID. Only the fields listed change, records that already have those values are left alone, and a key that matches no record or several records refuses the whole call. Returns {object_type, updated, ids}. Use salesforce_update_record for one record by id and salesforce_search to find ids. Requires user approval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | One sentence: why are you calling this tool right now? | |
| records | Yes | A JSON array of 1 to 200 objects, each holding key_field's value and the fields to change, such as [{"Id": "001...", "Phone": "+1 555 0100"}]. null clears a field. | |
| key_field | No | Field that identifies each record: Id (the default), or the API name of a field marked External ID on this object, such as 'Customer_Number__c'. It is never changed itself. | Id |
| object_type | Yes | API name of the Salesforce object, e.g. 'Account', 'Contact', 'Opportunity' or a custom object like 'Invoice__c'. |