Important Update: Discontinuation of Salesforce-Slack Managed Package on AppExchange
As of January 2024, the managed package integration between Salesforce and Slack has been officially deprecated on the Salesforce AppExchange. This notice is relevant exclusively to users who installed the package before its deprecation.
For those who do not have the deprecated Slack Package - see the following help center article.
In this article, you will learn how to connect Salesforce and Slack, so that you may request customized Slack notifications.
There are three general categories of messages:
1) messages to individuals
2) messages with record information to Slack Channels
3) more detailed messages that tag individual record owners to a Slack Channel.
Please navigate to the corresponding section for instructions.
Install the Slack for Salesforce AppExchange Package
Note: only one user needs to complete the steps below
Begin this process by having a SFDC Admin install the Slack Package to Salesforce by logging into SFDC and clicking on this link. Alternatively, your admin can visit the AppExchange in Salesforce and search for "Salesforce for Slack."
Then, connect Slack and Salesforce using the following instructions from Slack:
Visit the Slack listing in the AppExchange.
Click Get It Now to install the package to your production or sandbox environment.
Select Install for Admins Only.
Click Install.
Review the list of third-party websites and check the box next to Yes, grant access to these third-party websites.
Click Continue.
Once installation is complete, click Continue to Setup Assistant.
Once you have installed the AppExchange package, complete the Initial Slack Setup Steps Salesforce:
Navigate to Setup (gear icon in the top right corner of your Salesforce)
Search for "Initial Slack Setup" in the Quick Find box (upper left corner of the screen)
Click on Initial Slack Setup, and the following screen will appear. Please complete all the Setup Steps.
Connecting Slack to your Salesforce Environment
Next, you'll need to install the Salesforce connection in Slack.
The first app you'll need to install is the Salesforce for Slack baseline app, which you can find by following this link. The baseline app will establish a connection between the two applications.
The next app you'll need to install is the Sales Cloud for Slack App, which you can find by following this link. This app allows for more dynamic configurations of Slack Messages by using Salesforce Flows.
Once all of these steps are complete, reach out to your CSM to configure your desired message! In this request, please include the following:
The exact verbiage and fields that you want included in the message
The Channel ID of the Slack Channel where you want to send the message
The Workspace ID (which will always be the same).
See section Extracting Channel & Workspace IDs
For Detailed Messages that Tag Individual Record Owners in a Channel:
Once a designated user has finished the steps above, then each user of the Slack <> SFDC must connect their individual Slack account to Salesforce so that @ mentions can match between a Slack User Id and Salesforce User Id. To do this, each user should take the following steps:
Navigate to this link
Install the SFDC app in Slack
And that's it! The difference here is that, in addition to the first steps taken by an Admin, each user must setup their unique connection.
Once all of these steps are complete, you can request the Swantide Workflows for Slack Notifications! Set up requires you to input your individual Channel and Workspace IDs, by following the steps below:
For Sending a Detailed Message to an Individual in Slack:
Note: An Example of this workflow can be detailed in the following article
In Salesforce launch the App Launcher (upper left corner of your instance)
Search for Slack Setup
Click on Slack Setup
Complete the following steps
Note: Step 5 (Automation Configuration) is where you will be setting up your Salesforce User's Message Destination Ids. These Ids will be used in Swantide Workflows
When you Edit Automation Configuration, you should see the following screen
Extracting Channel & Workspace IDs:
Workspace ID:
Navigate to your web browser version of slack
Login to your environment
Look at the URL of your browser, the 11 digit code after
app.slack.com/client
is your workspace ID
Below is an example of how you would find you Workspace ID and Channel ID if you were to locate this in the Slack Browser.
Channel ID:
From the Web Browser:
Navigate to your web browser version of slack
Login to your environment
Look at the URL of your browser, the second URL snippet 11 digit code after
app.slack.com/client/workspaceid/channelid
is your Channel ID (shown above)
From the Slack App:
Navigate to your Slack Channel
Click the Channel Name and Navigate to the about section
Scroll to the bottom to see the Channel ID