Posting Messages to Slack using workflow rules - Answers - Salesforce Trailblazer Community
Trailblazer Community
Ask Search:
Tim DowleTim Dowle 

Posting Messages to Slack using workflow rules

Has anyone managed to configure SalesForce and Slack to that message posting to a slack channel can be triggered by a workflow rule.

Most of the guides on integrating Slack I have read are based on using Chatter and connecting that to Slack. The use case I have is, like workflow rules triggering email alerts, have those messages instead of coming out as emails they are posted to a Slack Channel that colleagues are subscribed to - Slack is the primary internal communication tool we use. I note you can configure outbound messages on Workflow Rules that require an Endpoint URL - perhaps this is the answer can just need to work out the Endpoint URL to the correct Slack Channel.

Would be good to know if anyone has managed to configure a similar integration?
Best Answer chosen by Tim Dowle
Eric Ezra RayburnEric Ezra Rayburn
Hi Tim, I am not sure if this is relevant but how you looked in to Zapier  I think you might be able to use the basic free account Hope this helps Eric

All Answers

Eric Ezra RayburnEric Ezra Rayburn
Hi Tim, I am not sure if this is relevant but how you looked in to Zapier  I think you might be able to use the basic free account Hope this helps Eric
This was selected as the best answer
Tim DowleTim Dowle
Hi, thanks for that. Have had a quick look and it appears promising.
Julia GräberJulia Gräber
I love zapier, if you need any help, feel free to ask
Priscila RenwickPriscila Renwick
Hey Tim, I came across your post when doing a bit of research. You can achieve what you want with a little bit of basic apex. Check this blog post with instructions: http://coenraets.org/blog/2016/01/slack-salesforce-integration/
Tim DowleTim Dowle
Thansk, will take a look
Patrick O'DonnellPatrick O'Donnell
Hi Tim, I'm looking to implement the same type of slack notifications. Curious if you ever found a solution that worked well for you?
Tim DowleTim Dowle
Hi Patrick, I' was overtaken with other priorities so didn't get around to reviewing this again. 
Patrick O'DonnellPatrick O'Donnell
Thanks for the prompt response Tim.

I did use the guide listed by Priscila and got slack notifications working for that specific use case, basically for opportunity events. It looks like i'll need to learn a bit more about apex and how to modify that apex class for notifications on other standard and custom objects.
Sean FieldingSean Fielding
Similiar to the posts from Priscila above, you can create a generic invocable method which will allow you to send a slack post from any object.  With a little work, you can also piece together a custom merge process that will allows that integration to be dynamic.