Technical Articles
Cloud Integration with Slack
Introduction:
This blog post shows the set up configurations of Slack adapter in Cloud Integration.
Implementation Guide:
Configuration at Slack:
- Create an app at https://api.slack.com
- In ‘Permissions’, add ‘Bot Token Scope’ as ‘chat:write’.
- Click on ‘Install to Workspace’ and then allow. This will generate ‘Bot User OAuth Token’.
- Add the app into the slack channel.
Configuration at CPI:
Step 1:
Step 2:
Design I-Flow as below.
- Use Content modifier to set template for message.
- Use Content modifier to create a property with value as message body.
- Configure slack receiver adapter as below.
Try Out:
As per the above configuration, the iflow will end with error event and that will be handled in exception subprocess. The slack notification will contain the alert message with MPL ID and error reason, as shown below.
Reference Links:
Thank you for reading this blog post. Please feel free to share your feedback or thoughts in the comments section or ask any questions in the Q&A tag below.
Regards,
Priyanka Chakraborti
Hi Priyanka,
It's a nice blog, can you provide some info on Slack adapter, from where can i get this adapter?
It would be helpful if you could provide URL for that.
Regards,
Imran
Dear Priyanka Chakraborti,
Thanks for blog. We have tried as it is and able to get response too.
Could you please elaborate little more information? And Sender Slack adapter example too.
Hello Priyanka,
I was looking for some guidance on Slack Integration and then found such nice blog of yours. I was able to replicate the same in my case and able to post message in Slack Channel.
Now client wants to send some data directly to Slack users inbox (DM) for that I have tried with chat.postEphemeral , chat.postMessage (passing user ID as query param) but on both the occasions getting "channel Not Found" error. Could you please throw some lights on this as how can I post direct message to user.