Send Salesforce cases from Slack by account and index
BotsCRMMarketing
What it does
When someone runs the list_by_account_with_start_ix_with_print_count case command in Slack, this automation searches Salesforce for cases tied to that account. It filters the results by start index and count, then posts the matching cases back to the channel.
Who it's for
Sales operations teams who need to view Salesforce cases by account and pagination from Slack.
Apps used
How teams use this
View cases for an account by page
Run the command with a start index and count to see a subset of cases without scrolling through the entire list in Slack. The team gets faster access to relevant records.
Troubleshoot account issues in the channel
Pull cases for a customer account during a support conversation in Slack so the team can discuss next steps without leaving the chat. Context stays in one place.
Add opportunity results to the same command
Extend this automation to also search and filter Salesforce opportunities by the same start index and print count parameters. The command then returns both cases and opportunities in one reply.
How it works
- Run the case list command. Type the list_by_account_with_start_ix_with_print_count case command in a Slack channel with the account, start index, and print count parameters.
- Search for cases by account. Query Salesforce for all cases linked to that account using a SOQL WHERE clause to retrieve the full list of matching records.
- Post filtered cases to Slack. Reply in the same Slack conversation with the cases that fall within the start index and print count range so the channel sees the paginated results.