Search Salesforce opportunities with a function call
Recipe ToolsWorkatoCRMMarketing
What it does
When someone calls this function in real time, this automation runs a SOQL query in Salesforce to search for opportunities. The results come back to the caller so they see the matching records.
Who it's for
Sales operations teams who need to find Salesforce opportunities from another app or workflow without building a separate integration.
Apps used
How teams use this
Find opportunities from another workflow
Call this function from a separate automation to search Salesforce opportunities without duplicating the query logic. The SOQL stays in one place and other workflows reuse it.
Embed opportunity lookup in a Slack bot
Invoke this function from a Slack command so someone can search Salesforce opportunities and see results in the channel. The bot calls the function and posts the matching records.
Filter results by opportunity stage
Add a condition to the SOQL query so only opportunities in a specific stage are returned. The function stays the same and only the query logic changes.
How it works
- Receive a function call. Someone calls this function in real time from another app or workflow with the parameters needed to search Salesforce opportunities.
- Search opportunities using SOQL. Run a SOQL query in Salesforce to find opportunities matching the search criteria, then return the results back to the caller immediately.