Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Sends a message to a Slack workspace. This operation takes a few inputs that will build a simple message along with a bearer token and sends a message to the channel based on the input given. The operation also requires the user to create an app in the slack workspace. You can see more about this in the special considerations section below.

Environment/Instance Properties

...

Property NameProperty CodeRequiredDescription
FDSLACK_INP_BEARER_TOKENYesBearer token generated by slack after adding app to workspace. Your token will most likely start with xoxp. (String) 
FDSLACK_INP_AS_USERNoEnter true if you would like to send the slack notification as the authorized user. (Boolean)
Channel Name or IdFDSLACK_INP_CHANNELYesName or Id of channel that the notification will be sent. For example, "random". Use user channel Id to send direct messages (String)
FDSLACK_INP_ICON_EMOJINoThe emoji that will be used as the icon for the bot. An example is ":chart_with_upwards_trend:" (String)
Icon URLFDSLACK_INP_ICON_URLNoThe URL for the image that will be used as the icon for the bot. An example is " https://s3-us-west-2.amazonaws.com/slack-files2/bot_icons/2019-12-27/874826668114_48.png". (String)
FDSLACK_INP_TEXTYesText for the message that will be sent. (String)
Bot UsernameFDSLACK_INP_USERNAMENoUsername for the bot that sends the notification. For example "FlexDeploy". (String)


Outputs

Output NameDescription




...

Below is an example. This will send a message to a channel called flexdeploy-demo.

Image RemovedImage Added

Below is the final result in the flexdeploy-demo channel.

Image RemovedImage Added