Post to Slack from Flow in 6 Easy Steps

This is an exciting week for all of us. The Release Readiness live webinars are here. Delving into the latest Salesforce Summer ’22 release notes over the weekend, I stumbled upon an intriguing feature that caught my attention: the brand new Slack invocable actions. With Salesforce announcing these actions as part of their beta release, set for sometime in June, I couldn’t help but wonder if it was possible to integrate these actions into my Salesforce flows immediately. To my pleasant surprise, not only was it possible to utilize these actions right away, but I also discovered that there was no need for a Preview Org or a Summer ’22 Sandbox to get started. Although finding the necessary steps required a bit of digging, setting everything up turned out to be surprisingly straightforward.

To help you leap straight into this without delay, I’ve put together a detailed step-by-step guide. This way, you can try it out immediately without having to navigate through the process on your own. Here’s how you can seamlessly post to Slack from your Salesforce Flow in just 6 steps:

1. Go to “Setup” and “Enable Slack for Salesforce”. Review and agree to the Pilot terms if you want to proceed.

2. Create and assign a permission set to the user who will post and use the integration. The permission set will have “Connect Salesforce with Slack” system permission activated.

3. Now go over to your Slack Workspace.

You can use a free Workspace, but if you have used all your permitted 10 App limit, you will need to remove an App. On the upper left side click on “More”, then “Apps”. On the screen you see in the middle, click on “App Directory”. Find “Sales Cloud for Slack”.

4. Go to the App page. Click on “Add to Slack”.

This will take you to a web page that is super confusing. Find “Add Sales Cloud For Slack App”. Click on the link. Give the necessary permissions. (Update: I received feedback that the Sales Cloud Slack app did not work for some folks. If this is your experience try one of the other apps on the same page. I tested the Salesforce Digital HQ app as well, and this app worked for me.)

5. Now go to any public channel on Slack.

Click/tap on the channel header where you see the title. Scroll all the way down and get the channel ID as seen below.

6. Go to Salesforce and build a simple Autolaunched Flow with one single element.

You will need to add the invocable action “Send Slack Message (Beta)”. Configure it as seen below. Include the Slack Channel ID. Run it. Voila!

Stay tuned for next week, as I delve into exploring the new screen flow functionalities, offering you a glimpse into further enhancing your Salesforce and Slack integration experience. This journey into Salesforce’s evolving landscape continues to offer exciting possibilities, and I’m here to guide you through each step.

Enjoy.

P.S. Originally published on 05/24/2022.

Read the previous issue of the newsletter here.

Subscribe to the weekly educational Salesforce Flow Tips newsletter here.

Enabling Slack Webhook Workflows with Salesforce Flow and HTTP Callouts


Comments

12 responses to “Post to Slack from Flow in 6 Easy Steps”

  1. Milan Glavan Avatar
    Milan Glavan

    Hi Andy,

    When I click on ‘Add to Slack’ button (Sales Cloud for Slack) I’ll end up on Salesforce page. Then, when I click on ‘Add Sales Cloud for Slack App’ nothing happens. I’m just brought back to the ‘Sales for Cloud App’ page and my app is not added to Slack. It’s like never ending loop. Any idea why is this? I have only 7 apps and I assigned the permission set. Thanks for all the help!

    1. Somebody else said this today. Let me do a few more tests this weekend. Tell me something. Is this a Salesforce production, sandbox or dev org?

  2. Milan Avatar
    Milan

    It’s production, but I think it’s the app that’s causing the issue. I tried ‘Service Cloud for Slack’ and some other apps and they work fine. I’ll try again next week and will let you know what the outcome was. It might help other folks. Your instructions are good and clear by the way. Very straightforward.

    1. I tried Salesforce Digital HQ on that very same page (on the bottom). It serves the same purpose. It works fine BTW.

  3. Milan Avatar
    Milan

    Quick update. I tried with ‘Service Cloud for Slack’ and ‘Salesforce Digital HQ’ apps and they work fine. I’m not sure what’s the deal with ‘Sales Cloud for Slack’ but I cannot make it to work.

  4. How do I send to an individual user?

    1. You can tag a user using @userId, but you cannot DM a user as far as I know.

    2. You can tag the user using their userId.

  5. […] Post to Slack from Flow in 6 Easy Steps […]

Leave a Reply

Discover more from Salesforce Break

Subscribe now to keep reading and get access to the full archive.

Continue reading