Summary
This article describes a business use case that will post messages to Slack channel for operations carried out in webMethods Developer Portal.
Pre-requisites
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 Import icon on the top right corner to import the workflow into your project.
Select the archive file “PostMsg_DevPortalToSlackChannel.zip” shared in the article.
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 profile icon then on Administration and go to Webhooks in the side navigation.
Click on “ Create ” button and paste the webhook URL copied from webMethods.io flow into URL field.
Select Type as “Provider” and pass the security credentials to trigger the webMethods.io flow.
Select “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 message will be posted on to slack.
Next steps
Would you like to carry out some operations on the webMethods 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.