Send File to Channel

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

Note

This card may timeout while trying to populate the Channel dropdown. This can occur when your workspace has a large number of channels that can't be retrieved within a 60 second time limit. This timeout can also occur when testing a card.

Options

Field Definition Type Required
Channel List of available channels.
Caution

A maximum of 200 public channels and 200 private channels are displayed. Even if the number of public (or private) channels don't exceed 200, API limitations may prevent some channels from being listed in the Channel dropdown.

The dropdown will display only those unarchived channels of which the user who created the Slack connection is a member. To specify a public or private channel that is not listed, select the Enter Channel ID option and populate the Channel ID input field.

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

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. String TRUE
File
File Content File content ID of the file to send to the channel. String TRUE
File Name Name of the file to send. This should include the file's extension. If no extension is provided, the downloaded file won't have an extension associated with it. String FALSE
Title A title to add to the file in the Slack message that contains the file. String FALSE
Initial Comment A comment to add to the file in the Slack message that contains the file. String 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.

String FALSE

Output

Field Definition Type
File ID ID of the sent file. String
Name Name of the sent file. String
Title Title of the sent file. String
File Type Type of the sent file. String
Timestamp Timestamp when the message was sent. String

Related topics

Slack connector

Elements of Workflows

Slack API