Skip to main content

List accounts

The Salesforce list accounts tool retrieves lists of Account records from your connected Salesforce org using a SOQL query. This is a read-only tool 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 connector in Glean, and an admin must enable the Salesforce tools and complete Salesforce Tools Setup including OAuth configuration.

  • Users must authenticate for Salesforce tools on first use.

  • The authenticated Salesforce user must have permission to view Account records based on your organization's sharing rules.

Supported parameters​

ParameterTypeDescription
QueryStringSOQL 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."

Troubleshooting​

FAQs​