List leads
The Salesforce list leads action retrieves a list of Lead records from your connected Salesforce org. This is a read-only action that supports flexible filtering and sorting to help teams find the right prospects in CRM 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 |
|---|---|---|
| Query | String | SOQL query to fetch leads. Use standard SOQL syntax to filter, sort, and limit results. Examples: "SELECT Id, FirstName, LastName, Company FROM Lead WHERE Status = 'New'" "SELECT Id, Name, Email, Company FROM Lead ORDER BY CreatedDate DESC LIMIT 10" "SELECT Id, Name, Rating FROM Lead WHERE Rating = 'Hot' AND Industry = 'Technology'" |
Usage examples
-
"List all open leads in the US West territory owned by me."
-
"Show me new leads created in the last 30 days sorted by company."
-
"Find all qualified leads with status 'Hot' ready for outreach."