Search leads
The Salesforce search leads action searches Lead records in your connected Salesforce org using flexible filters. This is a read-only action that helps teams find the right prospects quickly without modifying any Salesforce data.
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.
-
The authenticated Salesforce user must have permission to view Lead records based on your organization's sharing rules.
Supported parameters
| Parameter | Type | Description |
|---|---|---|
| Name | String | Search by lead name (first name or last name). Supports partial matches. Optional. |
| String | Search by email address. Supports partial matches. Optional. | |
| Company | String | Search by company name. Supports partial matches. Optional. |
| Status | String | Search by lead status (e.g., "Open", "Contacted", "Qualified"). Optional. |
| Phone | String | Search by phone number. Supports partial matches. Optional. |
| Fields | String | Comma-separated list of Lead fields to retrieve. Optional. |
| Limit | Integer | Maximum number of leads to return. Optional. |
| Lead source | String | Search by lead source. Examples: "Web" "Phone Inquiry" "Partner Referral" |
| Title | String | Search by job title. Supports partial matches. Examples: "Manager" "Director" "Sales" |
Usage examples
-
"Search for all qualified leads at Acme Corporation with email addresses ending in @acme.com."
-
"Find open leads named John Smith with phone numbers in the 415 area code."
-
"Show me all contacted leads at companies in the technology industry."