Skip to main content

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

ParameterTypeDescription
Annual revenueNumberEstimated or known annual revenue for the lead’s company. Defaults to -1 when not specified.
CityStringCity for the lead’s mailing or business address.
CompanyStringCompany name associated with the lead. Typically required.
CountryStringCountry for the lead’s mailing or business address.
DescriptionStringFree-form notes or additional context about the lead.
EmailStringPrimary email address for the lead.
First nameStringLead’s given name.
IndustryStringIndustry classification for the lead’s company.
Last nameStringLead’s family name or surname. Typically required.
Lead IDStringUnique identifier of the lead record (for example, Salesforce lead ID). Required for updates.
Lead sourceStringOrigin of the lead (for example, Web, Partner, Event).
Number of employeesIntegerNumber of employees at the lead’s company. Defaults to -1 when not specified.
PhoneStringPrimary phone number for the lead.
Postal codeStringPostal or ZIP code for the lead’s address.
RatingStringInternal quality or priority rating for the lead.
StateStringState, province, or region for the lead’s address.
StatusStringCurrent lifecycle status of the lead (for example, New, Working).
StreetStringStreet line of the lead’s mailing or business address.
TitleStringJob title or role of the lead.
WebsiteStringWebsite 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 ID set to "00Qxx000001234567".

    • Status set to "Working - Contacted".

    • Description set 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.

Troubleshooting

FAQs