Update Salesforce case from Slack

BotsCRMMarketing

What it does

When someone runs the close Salesforce case command in Slack, this automation searches Salesforce for that case by ID. It closes the case when found and notifies the channel of the result.

Who it's for

Customer support teams who close cases in Salesforce from Slack without switching apps.

How teams use this

Close a case without leaving Slack

Run the close case command with the case ID and get confirmation in the thread. The team stays in Slack and does not need to open Salesforce to complete the close.

Let customer success close cases

Invite the bot to a customer success channel so the team can close cases from their conversations. The flow stays the same and only the channel changes.

Add a resolution note to the case

Include a note prompt in the command so the case is closed with a resolution summary added to the Salesforce record. That is the only extra piece this setup needs.

How it works

  1. Run the close case command. Type the close Salesforce case command with the case ID in a Slack channel or direct message.
  2. Search for the case by ID. Search Salesforce for a case matching the ID provided in the command. If no case is found, Slack receives a message that the ID is not valid.
  3. Close the case in Salesforce. Close the Salesforce case when a match is found. If an error occurs during the search or close, the job stops and Slack receives an error notification.
  4. Confirm the case closure. Reply in the same Slack conversation so the channel knows whether the case was closed in Salesforce or why the close failed.