List accounts
The Salesforce list accounts action retrieves lists of Account records from your connected Salesforce org using a SOQL query. This is a read-only action that allows agents to filter, sort, and control which account fields to return 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 Account records based on your organization's sharing rules.
Supported parameters
| Parameter | Type | Description |
|---|---|---|
| Query | String | SOQL query to fetch accounts. Use standard SOQL syntax to select fields, filter, sort, and limit results. Required. |
Usage examples
-
"List all enterprise accounts in the West region sorted by annual revenue."
-
"Show me accounts in the technology industry that were created in the last 30 days."
-
"Find all accounts owned by the sales team with opportunities closing this quarter."