Query Salesforce cases from Slack and log Jira refs

BotsCRMMarketingRecipe ToolsData Parser

What it does

When someone runs a command in Slack, this automation queries Salesforce for cases using a SOQL WHERE clause. It posts matching results to Slack and logs any Jira references found in the case data.

Who it's for

Customer support teams who need to find Salesforce cases from Slack and track related Jira issues.

How teams use this

Find cases linked to Jira issues

Run the command to search Salesforce cases and see which ones have Jira references. The team gets the full list in Slack with linked issues visible.

Route cases to engineering based on Jira

Extend this automation to check if a Jira reference is present and route the case to an engineering channel only when one exists. Add a condition to filter cases with active Jira links.

Search cases by custom fields

Modify the SOQL WHERE clause to search by different case fields like priority or status instead of the default criteria. The rest of the flow stays the same.

How it works

  1. Run a command in Slack. Type a command in Slack to search for cases. The automation receives the command in real time.
  2. Query Salesforce cases with SOQL WHERE. Query Salesforce using a SOQL WHERE clause to find matching cases. The results are returned as a list to check next.
  3. Post results or empty message. If cases are found, post them to Slack. If the list is empty, post a message saying no cases matched the search.
  4. Parse JSON and loop through items. Parse the case data as JSON and loop through each item to find Jira references in the results returned from Salesforce.
  5. Log Jira references to job report. Post any Jira references found to the Slack channel and log them to the job report for tracking and visibility.