12

Cloud Integration with Slack

 2 years ago
source link: https://blogs.sap.com/2022/12/31/cloud-integration-with-slack/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
December 31, 2022 2 minute read

Cloud Integration with Slack

Introduction:

This blog post shows the set up configurations of Slack adapter in Cloud Integration.

Implementation Guide:

Configuration at Slack:

  1. Create an app at https://api.slack.com
  2. In ‘Permissions’, add ‘Bot Token Scope’ as ‘chat:write’.
    Screenshot-2022-12-30-at-10.58.00-AM.png
  3. Click on ‘Install to Workspace’ and then allow. This will generate ‘Bot User OAuth Token’.
    Screenshot-2022-12-30-at-10.59.55-AM-1.png
  4. Add the app into the slack channel.
    Screenshot-2022-12-30-at-2.35.16-PM.png

Configuration at CPI:

Step 1:

Go to CPI tenant -> Manage Security Material -> Create -> Secure Parameter.

Screenshot-2022-12-30-at-11.16.00-AM.png

Step 2:

Design I-Flow as below.

Screenshot-2022-12-30-at-3.15.23-PM.png
  1. Use Content modifier to set template for message.Screenshot-2022-12-30-at-3.26.09-PM.png
  2. Use Content modifier to create a property with value as message body.
    Screenshot-2022-12-30-at-3.27.55-PM.png
  3. Configure slack receiver adapter as below.
    Screenshot-2022-12-30-at-3.30.50-PM.png
    Screenshot-2022-12-30-at-3.32.04-PM.png

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.

Screenshot-2022-12-30-at-3.34.30-PM.png

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.

QA link

Regards,

Priyanka Chakraborti

</div


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK