Summary
This article describes a business use case that will post messages to Slack channel for operations carried out in webMethods Developer Portal.
Prerequisites
-
User should have a working webMethods.io Integration cloud tenant.
-
User should have a working Slack account.
-
Access to Developer Portal on the cloud tenant.
Steps
-
Login to webMethods.io Integration tenant and create a Workflow.
-
Create a new project or choose an existing project.
-
Click on the Import icon at the top right corner to import the workflow into your project.
-
Select the archive file “PostMsg_DevPortalToSlackChannel.zip” shared in the article.
-
The workflow name and description are preloaded.
-
Authorize Slack by either Default or Manual configuration.
-
Select the channel from the dropdown on successful authorization.
-
Click on “Import” to import the workflow into your project.
-
The workflow is imported successfully, enabled, and ready to use.
-
Provide mandatory inputs and map the appropriate fields from the webhook trigger to “Post Message To Channel” step, to form a proper text message to be posted to the Slack channel.
-
Click Next and save the workflow.
-
Edit the webhook connector and select the proper “webhook authentication” type.
-
Copy the Webhook URL and save the workflow.
-
Login to webMethods Developer Portal.
-
Click on the profile icon then on Administration and go to Webhooks in the side navigation.
-
Click on “Create” button and paste the webhook URL copied from webm.io flow into the URL field.
-
Select Type as “Provider” and pass the security credentials to trigger the webm.io flow.
-
Select the event type on which the webhook is to be triggered.
-
Select the “Invoke Try API option” to try now and can be used for any available event type.
-
Invoke an API from the API gallery to test the workflow.
-
The webhook will trigger the workflow and the message will be posted on Slack.
-
Now check the Slack channel for the message posted.
Next steps
Would you like to carry out some operations on the Developer Portal by posting a message in Slack channel? Please follow the steps in the post: Invoke webMethods Developer Portal REST APIs by posting a message in the Slack channel
Useful links | Relevant resources
PostMsg_DevPortalToSlackChannel.zip (23.2 KB)