Slack Files Upload (Legacy Auth)

Description

The Slack Files Upload Action Component allows you to post messages and files to a Slack channel specified in the component's properties using the Slack API. It is useful for debugging actions and notifying people. It can also be used to send messages to #channels and @people.

Please Note: Slack has updated its API. Depending on your Slack account's setup and whether it has access to Slack's legacy infrastructure, you may refer to the Slack Files Upload2.

Please create a new app from the Slack API site and add "chat:write:bot" and "files:write:bot" to the "Scopes" located at "OAuth & Permissions" in the Features menu. Once added, the "Install App to Workspace" button will become clickable at "OAuth Tokens & Redirect URLs", allowing you to install the app (grant permissions). Once "granted", the "OAuth Access Token" token will become available for use.

Specify this token in the Token property of the component.

Output PayloadDescription
cv.PayloadOutputs the previous component's output payload as-is (pass-through)

Component Properties

Property NameDescription
File NameSpecify the file to send along with the message
TitleSpecify the title of the file
ChannelSpecify the Slack channel
CommentSpecify the message text to send
TimeoutSpecify the message send timeout duration
TokenSpecify the OAuth Access Token set in Slack

The reference path for files not specifying a file path is actmgr/data, but for file names specifying a path, refer to File Path Handling.