Limitations
- As with other Salesforce actions, the exact parameter set, field coverage, and behavior may change over time. Confirm how the action behaves in your environment before relying on it for large-scale or fully automated updates.
Prerequisites
- Your Salesforce org must be connected as a data source in Glean, and an admin must enable the Salesforce action pack and complete Salesforce Actions Setup including OAuth configuration.
- Users must authenticate for Salesforce actions on first use and have permission to update Contact records and write to relevant fields.
Supported parameters
| Parameter | Type | Description |
|---|---|---|
| Contact ID | String | Salesforce ID of the Contact record to update. |
| Account ID | String | Updated Account ID association. Leave empty to keep unchanged. |
| First name | String | New first name to set on the contact. |
| Last name | String | New last name. |
| String | Updated email address. | |
| Phone | String | Primary phone number for the contact. |
| Mobile phone number | String | Mobile phone number. |
| Title | String | Job title. |
| Department | String | Department name. |
| Description | String | Free-form description or notes about the contact. |
| Birthdate | String | Contact’s birthdate. |
| Mailing street | String | Street portion of the contact’s mailing address. |
| Mailing address (city) | String | City for the mailing address. |
| Mailing address (state/province) | String | State or province for the mailing address. |
| Mailing address (postal code) | String | Postal or ZIP code for the mailing address. |
| Mailing address (country) | String | Country for the mailing address. |
Usage example
You need to update a contact’s job details after they changed roles at their company, searching for them first to confirm you have the right person. Instruction to an agent: “Find the contact for [email protected] in Salesforce and update her title to VP of Product, department to Product Management, and phone to 111-555-9999.” Resulting behavior:- Calls Search Salesforce with SOQL to find contacts with email “[email protected]”.
- Retrieves the Contact ID (for example, “003xx000001234567”).
-
Calls Update contact with:
-
Contact IDset to “003xx000001234567”. -
Titleset to “VP of Product”. -
Departmentset to “Product Management”. -
Phoneset to “111-555-9999”.
-
- Updates the specified fields on the Contact record.
- All other fields (First name, Last name, Email, Account association, Mailing address, etc.) remain unchanged.
- Confirms the contact was updated successfully.
Troubleshooting
Salesforce Update contact action does not appear in the agent builder
Salesforce Update contact action does not appear in the agent builder
- Possible cause: The Salesforce action pack is not enabled or not linked to your Salesforce data source in the Glean admin console.
- Fix: In the Glean admin console, go to Platform → Actions, add the Salesforce action pack if needed, link it to your Salesforce datasource instance, configure authentication, update publish settings, and save. After that, Salesforce Update contact must appear under Actions → By datasource → Salesforce in the agent builder.
INVALID_FIELD_FOR_INSERT_UPDATE on one or more contact fields
INVALID_FIELD_FOR_INSERT_UPDATE on one or more contact fields
- Possible cause: The Salesforce profile of the user or permission set does not have write access to one of the fields included in the update.
- Fix: In Salesforce setup, adjust field-level security or permission sets so that the user has write access to the affected Contact fields, or remove those fields from the action configuration, then re-run the agent.
FAQs
Does Salesforce Update contact overwrite all fields on the contact?
Does Salesforce Update contact overwrite all fields on the contact?
No. The action updates only the specified fields. Only the fields you pass into the action are modified; all other fields remain unchanged on the record.
How do I find the Contact ID to update?
How do I find the Contact ID to update?
Use Salesforce Search or Search Salesforce with SOQL to find the contact by email, name, or other criteria first. These search actions will return the Contact ID, which you can then pass to Update contact.
Can I use this action together with other Salesforce actions?
Can I use this action together with other Salesforce actions?
Yes. You can combine Update contact with Salesforce Search, Search Salesforce with SOQL, Send email, Log email activity, Create contact, or other Salesforce actions to build complete workflows that find contacts, update their information, and track outreach.