Send File to User

Send a file to a Slack user.

Options

Field Definition Type Required
Field Type Choose whether to send a file to user by User ID or Username.

Organizations with a large number of users may experience long execution times when selecting Username. Instead, select User ID to reduce execution time.

Dropdown

TRUE

Input

Field Definition Type Required
User
User ID

Unique identifier of the user.

This field appears if Field Type is User ID.

Text

TRUE

Username Username of the Slack user. This field appears if Field Type is Username.

Text

TRUE

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

Text

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.

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 user.

Text

Title Title of the sent file.

Text

File Type Type of the sent file.

Text

Timestamp Timestamp when the message was sent.

Text

Related topics

Slack connector

Workflow elements

Slack API