Update lead
The Salesforce Update lead action updates existing lead records in your connected Salesforce org identified by their Salesforce ID. This write action updates only the specified fields and does not change unspecified fields on the lead.
Limitations
- As with other Salesforce actions, the exact parameter set and behavior can change over time. Confirm behavior in your own environment and review the action schema in the agent builder before relying on this action for large-scale or fully automated lead 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 Lead records.
Supported parameters
| Parameter | Type | Description |
|---|---|---|
| Annual revenue | Number | Estimated or known annual revenue for the lead’s company. Defaults to -1 when not specified. |
| City | String | City for the lead’s mailing or business address. |
| Company | String | Company name associated with the lead. Typically required. |
| Country | String | Country for the lead’s mailing or business address. |
| Description | String | Free-form notes or additional context about the lead. |
| String | Primary email address for the lead. | |
| First name | String | Lead’s given name. |
| Industry | String | Industry classification for the lead’s company. |
| Last name | String | Lead’s family name or surname. Typically required. |
| Lead ID | String | Unique identifier of the lead record (for example, Salesforce lead ID). Required for updates. |
| Lead source | String | Origin of the lead (for example, Web, Partner, Event). |
| Number of employees | Integer | Number of employees at the lead’s company. Defaults to -1 when not specified. |
| Phone | String | Primary phone number for the lead. |
| Postal code | String | Postal or ZIP code for the lead’s address. |
| Rating | String | Internal quality or priority rating for the lead. |
| State | String | State, province, or region for the lead’s address. |
| Status | String | Current lifecycle status of the lead (for example, New, Working). |
| Street | String | Street line of the lead’s mailing or business address. |
| Title | String | Job title or role of the lead. |
| Website | String | Website URL associated with the lead’s company. |
Usage example
You just sent an introduction email to a lead and need to update their status in Salesforce to reflect active outreach, searching for them first to get their Lead ID.
Instruction to an agent:
"Find the lead for ABC at XYZ Inc in Salesforce and update his status to Working - Contacted with a note that says Sent intro email about enterprise product demo."
Resulting behavior:
-
Calls Search Salesforce with SOQL to find leads where the last name is "ABC" and company is "XYZ Inc".
-
Retrieves the Lead ID (for example, "00Qxx000001234567").
-
Calls Update lead with:
-
Lead IDset to "00Qxx000001234567". -
Statusset to "Working - Contacted". -
Descriptionset to "Sent intro email about enterprise product demo on Dec 11, 2025".
-
-
Updates the specified fields on the Lead record.
-
All other fields (First name, Last name, Company, Email, Phone, Title, etc.) remain unchanged.
-
Confirms the lead status was updated successfully.
Workflow tip: Always search for the lead first to get the Lead ID before updating. When chaining Create lead and Update lead, ensure your agent captures and passes the correct lead ID between steps. For prospecting workflows, you can combine this action with Create lead and Send email to create leads from sources like Google Sheets, send intro emails, and update status in one coordinated run.