> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# uploadAttachment

> Posts an attachment to a Slack workspace. This operation can either post an attachment as a new message or reply/start a thread on a previous message.

Posts an attachment to a Slack workspace. This operation can either post an attachment as a new message or reply/start a thread on a previous message.

> [!NOTE]
>
> All Slack operations require a [Slack Messaging Account](https://docs.flexagon.com/flexdeploy-11-1-documentation/flexdeploy-plugin-guides/flexdeploy-slack-plugin-guide.md).

# Inputs

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Property Name**</th><th>**Property Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Slack Account</td><td>`FDSLACK_INP_CLOUD_ACCT_CODE`</td><td>Yes</td><td>[Slack account code](https://docs.flexagon.com/flexdeploy-11-1-documentation/flexdeploy-plugin-guides/flexdeploy-slack-plugin-guide.md) from Topology->Integrations->Messaging </td></tr><tr><td>Channel Name or Id</td><td>`FDSLACK_INP_CHANNEL`</td><td>Yes</td><td>Name or Id of channel that the notification will be sent. For example, "random". Use user channel Id to send direct messages (String)</td></tr><tr><td>File Location</td><td>`FDSLACK_INP_ATTACHMENT`</td><td>Yes</td><td>The file location of the attachment to upload</td></tr><tr><td>Comment</td><td>`FDSLACK_INP_ATTACHMENT_COMMENT`</td><td>No</td><td>A simple message/comment to appear as a heading for the attachment</td></tr><tr><td>Thread TS</td><td>`FDSLACK_INP_THREAD_TS`</td><td>No</td><td>An optional Slack message id to use. Set this id if you want to add this attachment as a reply on a previous message.</td></tr></tbody></table>

# Outputs

<table><colgroup><col /><col /></colgroup><tbody><tr><th>**Output Name**</th><th>**Description**</th></tr><tr><td>`FDSLACK_OUT_MESSAGE_TS`</td><td>Resulting Slack Message Id (TS id) of the newly created message. This can be used start or reply to threads.</td></tr></tbody></table>

# Artifacts

This operation delegates the consume artifacts decision to the workflow developer.

# Endpoint Selection

This operation delegates the selection to the workflow developer to determine.

# Endpoint Execution 

This operations delegates the execution to the workflow developer to decide

# Special Considerations

Below is an example of posting an attachment to the flexdeploy-demo channel

![image-20240604-113230.png](https://mintcdn.com/flexagon-llc-ce77a95c/NkeZh5D-Nf8j_WaD/images/fd111/12596421554.png?fit=max\&auto=format\&n=NkeZh5D-Nf8j_WaD\&q=85\&s=08736ddfac6949c079c6a8eb6d57ced2)
