Search campaigns
The Salesforce search campaigns action searches campaign records in your connected Salesforce org using flexible filters. This is a read-only action that helps teams find the right campaigns 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 Campaign records based on your organization's sharing rules.
Supported parameters
| Parameter | Type | Description |
|---|---|---|
| Name | String | Campaign name to search for. Supports partial matches. Optional. |
| Type | String | Campaign type to filter by (e.g., "Email", "Webinar", "Conference"). Optional. |
| Status | String | Campaign status to filter by (e.g., "Planned", "In Progress", "Completed"). Optional. |
| Is active | Boolean | Filter by active status. True for active campaigns, false for inactive. Optional. |
| Start date from | Date | Search campaigns starting from this date (YYYY-MM-DD format). Optional. |
| Start date to | Date | Search campaigns starting before this date (YYYY-MM-DD format). Optional. |
| Fields | String | Comma-separated list of Campaign fields to retrieve in results. Optional. |
| Limit | Integer | Maximum number of campaigns to return. Optional. |
Usage examples
-
"Find all active email campaigns with 'Product Launch' in the name."
-
"Search for webinar campaigns that started in Q1 2024 with status 'Completed'."
-
"Show me all conference campaigns in progress sorted by start date."