Send File to Channel

Send a file to a Slack channel. You must be a member of the channel.

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

If your workspace has a large number of channels, this card may exceed the 60 second time limit while trying to populate the Channel dropdown list. This timeout can also occur when testing a card.

Options

Field Definition Type Required

Channel

List of available channels.

This field shows a maximum of 200 public channels and 200 private channels. Even if the number of public or private channels is fewer than 200, API limitations may prevent some channels from appearing in the Channel dropdown list.

The dropdown displays only unarchived channels where the user who created the Slack connection is a member. To specify an unlisted public or private channel, select the Enter Channel ID option and enter the Channel ID.

If a failure occurs and no channels are listed in the dropdown, then only the Enter Channel ID option appears.

Dropdown

TRUE

Input

Field Definition Type Required

Channel (if Enter Channel ID is selected for Channel

)

Channel ID or Name

Unique identifier or assigned name of the Slack channel.

Use the channel ID instead of the channel name.

If you use a channel name it might slow the execution of the card if your organization has many channels.

Text

TRUE

File

File Content File content ID of the file to send to the channel.

Text

TRUE

File Name

Name of the file to send.

Include the file's extension.

If you don't provide an extension, the downloaded file doesn't have an extension associated with it.

Text

FALSE

Title A title to add to the file in the Slack message that contains the file.

Text

FALSE

Initial Comment A comment to add to the file in the Slack message that contains the file.

Text

FALSE

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

Output

Field Definition Type
File ID ID of the sent file.

Text

Name Name of the sent file.

Text

Title Title of the sent file.

Text

File Type

Type of the sent file.

You might not get a return value from Slack for this field.

Text

Timestamp Timestamp when the message was sent.

Text

Related topics

Slack connector

Workflow elements

Slack API