DEV Community

Tech Community for Software AG Tech Community

Posted on • Originally published at tech.forums.softwareag.com on

Post message in Slack Channel for operation in webMethods Developer Portal

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

  1. Login to webMethods.io Integration tenant and create a Workflow.

  2. Create a new project or choose an existing project.

  3. Click on Import icon on the top right corner to import the workflow into your project.
    Import_workflow

  4. Select the archive file “PostMsg_DevPortalToSlackChannel.zip” shared in the article.

  5. The workflow name and description are preloaded.
    Workflow_settings

  6. Authorize Slack by either Default or Manual configuration.

  7. Select the channel from the dropdown on successful authorization.

  8. Click on “Import” to import the workflow into your project.

  9. The workflow is imported successfully, enabled and ready to use.
    Workflow_enabled

  10. 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.
    Post_message_to_channel

  11. Click Next and save the workflow.

  12. Edit the webhook connector and select the proper “webhook authentication” type.
    Webhook_auth

  13. Copy the Webhook URL and save the workflow.

  14. Login to webMethods Developer Portal.

  15. Click on profile icon then on Administration and go to Webhooks in the side navigation.
    Webhook_admin

  16. Click on “ Create ” button and paste the webhook URL copied from webMethods.io flow into URL field.
    Webhook_admin2

  17. Select Type as “Provider” and pass the security credentials to trigger the webMethods.io flow.
    Webhook_conf

  18. Select the event type on which the webhook to be triggered.
    Create_webhook

  19. Select “Invoke Try API option” to try now and can be used for any available event type.

  20. Invoke an API from the API gallery to test the workflow.

  21. The webhook will trigger the workflow and message will be posted on to slack.

  22. Now check the Slack channel for the message posted.
    Slack_message

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.

Useful links | Relevant resources

Read full topic

Top comments (0)