Skip to main content

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

ParameterTypeDescription
NameStringSearch by opportunity name. Supports partial matches. Optional.
Account nameStringSearch by associated account name. Supports partial matches. Optional.
Stage nameStringSearch by opportunity stage (e.g., "Prospecting", "Negotiation", "Closed Won"). Optional.
Lead sourceStringSearch by lead source. Optional.
Amount minNumberMinimum opportunity amount. Optional.
Amount maxNumberMaximum opportunity amount. Optional.
Close date fromDateReturn opportunities with close date on or after this date (YYYY-MM-DD format only). Optional.
Close date toDateReturn opportunities with close date before this date (YYYY-MM-DD format only). Optional.
Is closedBooleanFilter by closed status. True returns closed opportunities, false returns open. Optional.
Is wonBooleanFilter by won status. True returns won opportunities, false returns lost (applies to closed opportunities only). Optional.
FieldsStringComma-separated list of Opportunity fields to retrieve. Optional.
LimitIntegerMaximum 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."

Troubleshooting

FAQs