![](https://www.infallibletechie.com/wp-content/uploads/2022/10/Salesforce-Flow-to-create-Swarm-Request-using-Slack-for-Service-1024x576.jpg)
Prerequisites:
1. Initial Slack Setup completed.
![](https://www.infallibletechie.com/wp-content/uploads/2022/10/Initial-Slack-Setup-Salesforce.jpg)
2. Service Cloud for Slack Enabled.
![](https://www.infallibletechie.com/wp-content/uploads/2022/10/Service-Cloud-for-Slack-App-Salesforce.jpg)
3. Sign up and create a Workspace in Slack – https://slack.com/get-started#/createnew.
4. Install Service Cloud for Slack App.
![](https://www.infallibletechie.com/wp-content/uploads/2022/10/Service-Cloud-for-Slack-Salesforce-App.jpg)
In the following example, I have use Screen Flow and used Quick action to call the flow from Case record.
Sample Flow:
![](https://www.infallibletechie.com/wp-content/uploads/2022/10/Salesforce-Swarm-Request-Flow-Slack-for-Service-Swarming.jpg)
Get Swarming Collaboration Tool Settings:
![](https://www.infallibletechie.com/wp-content/uploads/2022/10/Salesforce-Flow-Get-Swarming-Collaboration-Tool-Settings.jpg)
Slack Workspace Selector:
![](https://www.infallibletechie.com/wp-content/uploads/2022/10/Salesforce-Flow-Slack-Workspace-Selector.jpg)
Slack Channel Selector:
![](https://www.infallibletechie.com/wp-content/uploads/2022/10/Salesforce-Flow-Slack-Channel-Selector.jpg)
Slack Message:
![](https://www.infallibletechie.com/wp-content/uploads/2022/10/Salesforce-Flow-Slack-Message.jpg)
Create Swarm Record:
![](https://www.infallibletechie.com/wp-content/uploads/2022/10/Salesforce-Flow-create-Swarm-Record.jpg)
CollaborationTool = {!Get_Swarming_Collaboration_Tool.collaborationTool}
CollaborationUrl = https://app.slack.com/client/{!SlackWorkspaceSelector.selectedWorkspaceId}/{!SlackChannelSelector.selectedChannelId}
Send Slack Message:
![](https://www.infallibletechie.com/wp-content/uploads/2022/10/Salesforce-Flow-Send-Slack-Message.jpg)
Slack App = {!Get_Swarming_Collaboration_Tool.collaborationAppId}
Slack Workspace = {!SlackWorkspaceSelector.selectedWorkspaceId}
Slack Conversation ID = {!SlackChannelSelector.selectedChannelId}
Get Collaboration Room:
![](https://www.infallibletechie.com/wp-content/uploads/2022/10/Salesforce-Flow-Get-Collaboration-Room.jpg)
PlatformKey = {!SlackChannelSelector.selectedChannelId}
TeamKey = {!SlackWorkspaceSelector.selectedWorkspaceId}
Salesforce Flow Collaboration Room Check:
![](https://www.infallibletechie.com/wp-content/uploads/2022/10/Salesforce-Existing-CollaborationRoom-Check.jpg)
Assign Existing Collaboration Room Id:
![](https://www.infallibletechie.com/wp-content/uploads/2022/10/Salesforce-Flow-Assign-Existing-Collaboration-Room-Id.jpg)
Create Collaboration Room:
![](https://www.infallibletechie.com/wp-content/uploads/2022/10/Salesforce-Slack-for-Service-Create-Collaboration-Room.jpg)
Assign New Collaboration Room Id:
![](https://www.infallibletechie.com/wp-content/uploads/2022/10/Salesforce-Flow-Assign-New-Collaboration-Room-Id.jpg)
Update Swarm Record:
![](https://www.infallibletechie.com/wp-content/uploads/2022/10/Salesforce-Flow-Update-Swarm-Record.jpg)
CollaborationUrl = https://app.slack.com/client/{!SlackWorkspaceSelector.selectedWorkspaceId}/{!SlackChannelSelector.selectedChannelId}/thread/{!SlackChannelSelector.selectedChannelId}-{!SlackMessageTimestamp}
Quick Action Setup:
![](https://www.infallibletechie.com/wp-content/uploads/2022/10/Quick-Action-Setup-for-Slack-Salesforce-Flow.png)
Output:
![](https://www.infallibletechie.com/wp-content/uploads/2022/10/Salesforce-Slack-for-Service-Workspace-Selection.jpg)
![](https://www.infallibletechie.com/wp-content/uploads/2022/10/Salesforce-Slack-for-Service-Channel-Selection.jpg)
![](https://www.infallibletechie.com/wp-content/uploads/2022/10/Salesforce-Slack-for-Service-Slack-Message.jpg)
![](https://www.infallibletechie.com/wp-content/uploads/2022/10/Salesforce-Slack-for-Service-Post-Message-for-Swarming.jpg)