Skip to main content

List campaigns

The Salesforce list campaigns tool retrieves a list of Campaign records from your connected Salesforce org. This is a read-only tool that supports flexible filtering and sorting to help teams find the right campaigns 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 Campaign records based on your organization's sharing rules.

Supported parameters​

ParameterTypeDescription
QueryStringSOQL query to fetch campaigns. Use standard SOQL syntax to filter, sort, and limit results. Examples: "SELECT Id, Name, Type, Status FROM Campaign WHERE IsActive = true" "SELECT Id, Name, StartDate, EndDate FROM Campaign ORDER BY StartDate DESC LIMIT 10" "SELECT Id, Name, BudgetedCost FROM Campaign WHERE Type = 'Email' AND Status = 'In Progress'"

Usage examples​

  • "List all active email campaigns sorted by start date."

  • "Show me webinar campaigns that started in Q4 2023."

  • "Find all campaigns with status 'In Progress' owned by the marketing team."

Troubleshooting​

FAQs​