Send Message to Channel

Send a message to a Slack channel. You must be a member of the channel. You can send the message as a bot or from your own ID.

Sending messages as a bot also triggers any Okta Workflows that look for a New Message in Channel event. If you're subscribed to channel notifications, you'll receive a notification when you send messages as a bot. However, sending a message from your own ID doesn't trigger Okta Workflows or notifications.

Options

Field Definition Type Required

Channel

List of available channels. The member must be able to post a message.

Dropdown FALSE

Send as bot?

Indicates whether to send a message from a bot.

Select Yes to send the message from a bot or No to send it from your own ID.

Dropdown FALSE

Unfurl URLs?

Select Yes if Slack should scan links found in messages and create attachments based on the link contents.

Dropdown FALSE

Message Type

The format of the message, either Plain Text or Blocks. See Layout blocks.

Dropdown FALSE

Input

Field Definition Type Required

Channel

Appears if you select Enter Channel ID for Channel.

Channel ID or Name

A unique identifier or assigned name of the Slack channel.

Text TRUE

Channel Type

Indicates the type of channel: Public or Private.

If you want to send a message to a private channel as a bot, the Okta Workflows Slack app must be invited to the private channel. Otherwise the card returns a 400 - Channel Not Found error.

Dropdown FALSE

Message

Text

Appears if you select Plain Text for the Message Type.

The text of the message. You can include the following in a message:

  • emojis as :owl:

  • channel names as #channelname

  • group names as @slack_owners

  • specific users as <@slack_user_id>

  • commands as /command

Text TRUE

Blocks

Appears if you select Blocks for the Message Type.

Blocks that comprise the message. Add a block by clicking + click to add item. See Layout blocks.

Text TRUE

Notification Message

A fallback string to display in notifications.

Text TRUE

Thread Timestamp

Timestamp of another message's ts value. See Retrieving individual messages.

Note: Never use the ts value from a reply. Use the ts value of the reply's parent instead.

Text FALSE

Slackbot

Appears if Send as Bot? is True.

Name

Name to use as the message sender.

Text FALSE

Icon Emoji

An emoji to use as the profile photo for the message, specified using a colon short code, for example, :owl:.

Text FALSE

Icon URL

A URL pointing to an icon to use as the profile photo for the message.

If no URL is provided, the default bot icon is used.

If any value is specified in Icon Emoji, then that value overrides any URL set in this field.

Text FALSE

Output

Field Definition Type

Timestamp

The timestamp when the message was sent.

Text