Search opportunities
The Salesforce search opportunities action searches Opportunity records in your connected Salesforce org using flexible filters. This is a read-only action that helps teams find the right deals 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 Opportunity records based on your organization's sharing rules.
Supported parameters
| Parameter | Type | Description |
|---|---|---|
| Name | String | Search by opportunity name. Supports partial matches. Optional. |
| Account name | String | Search by associated account name. Supports partial matches. Optional. |
| Stage name | String | Search by opportunity stage (e.g., "Prospecting", "Negotiation", "Closed Won"). Optional. |
| Lead source | String | Search by lead source. Optional. |
| Amount min | Number | Minimum opportunity amount. Optional. |
| Amount max | Number | Maximum opportunity amount. Optional. |
| Close date from | Date | Return opportunities with close date on or after this date (YYYY-MM-DD format only). Optional. |
| Close date to | Date | Return opportunities with close date before this date (YYYY-MM-DD format only). Optional. |
| Is closed | Boolean | Filter by closed status. True returns closed opportunities, false returns open. Optional. |
| Is won | Boolean | Filter by won status. True returns won opportunities, false returns lost (applies to closed opportunities only). Optional. |
| Fields | String | Comma-separated list of Opportunity fields to retrieve. Optional. |
| Limit | Integer | Maximum number of opportunities to return. Optional. |
Usage examples
-
"Find all open opportunities at Acme Corporation with close dates this quarter and amounts over $50,000."
-
"Search for opportunities in the Negotiation stage with close dates in the next 30 days."
-
"Show me all closed-won opportunities from the Webinar lead source this year."