Configuring Slack - Post message to Channel action
Set up the Slack - Post Message to Channel action, which automatically posts contents of the tweet to the specified Slack channel.
Procedure
-
On the workflow canvas, under Connectors, search
Slack, and drag it anywhere on the canvas. You see that it gets automatically connected to the Start icon, which is now the Twitter icon.
- Double-click the Slack connector icon. A pop-up window opens up on the screen where you can see the configuration form for the Slack actions.
- Provide values for the input fields.
- Select action- Select Post Message to Channel action from the list of supported Slack actions.
- Label- Provide a suitable name for this action, for example, Post Message on Slack.
- Authorize Slack- Click the + icon to add a Slack authorization.
- If you are already logged in to your Slack account, you are prompted to grant webMethods Integration the
permission to access your Slack account. Click Allow. If you are not logged in, you are prompted to log in first.
- On the next screen, you are prompted to install the webMethods Integration app for your
Slack workspace. Click Install. You are redirected back to the canvas. A dialog box appears where you can alternately change the name of the account you are about to create.
- Next, click Add. The Slack account is successfully created. You can now use this account to configure any Slack triggers or actions.
- Click Next. You are redirected to the Post Message to Channel action configuration window. Configure the Post Message to Channel action as follows:
- To - Specify the type of channel on which you want to post the tweet details.
- Public Channel ID or Channel Name - Select or specify the channel ID or channel name on which you want to post the tweet details.
- Text - To post the tweet content, use the output from the Twitter-New Tweet or Retweet Posted by Me trigger in this field. The output of the trigger is visible on the left side of the window, under the {trigger_name} - Trigger Data field. Click the option next to the trigger name to view output keys and sample values from the previous test. From the trigger output list, select the text parameter for the Text field, which includes the content (text) of the tweet in the message body when the workflow is run.
- Click Next. You are taken to the Test action window, where you can check whether the action is configured correctly.