---
schema_version: "1"
id: 6bbc5a937f1f4a9581e192c8ae9d63d4cbd982c264c730dd0b75eddf75b804b9
title: Send Slack Message Action
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/flow_ref_elements_actions_slack_send_message.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_actions_slack_send_message.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2cb555f91d33aa217900ec360389800cec1884af1c566362ddc30f8d31a1e8e5
description: Send a message to a Slack channel, direct message, or the Messages tab of a Slack app.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Send Slack Message Action

Send a message to a Slack channel, direct message, or the Messages tab of a Slack app.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=platform.flow_ref_supported_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Flow Builder. Some Flow Builder features integrate with other Salesforce products that require additional licenses.">View supported editions.</a></td></tr></tbody></table>

Before using a core action for Slack, enable Salesforce for Slack integrations.

In Flow Builder, add an Action element to your flow. In the New Action window, select **Slack**, and then select **Send Slack Message**.

## Set Connection Values for Slack

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:33.33333333333333%">
          <col style="width:66.66666666666666%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d196571e80">Input Parameter</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d196571e83">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d196571e80 ">
              <strong class="uicontrol">Slack App</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d196571e83 ">
              <p style="margin-bottom:0;">Required. The Slack app that runs the action. Only Slack apps that are
                installed for the org are available. The input value evaluates to the Slack app ID.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d196571e80 ">
              <strong class="uicontrol">Slack Workspace</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d196571e83 ">
              <p style="margin-bottom:0;">Required. The Slack workspace where the Slack app is installed.
                Select a value or resource. The input value evaluates to the Slack workspace ID.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d196571e80 ">
              <strong class="uicontrol">Execute Action As</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d196571e83 ">
              <p>The entity that runs the action. Valid values are: </p>
              <ul>
                <li>Slack App—Run the action as the Slack app that you selected in the Slack App field. It’s
                  the default value.</li>

                <li>Run as Current User— Run the action as the user running the Invocable action. The user
                  must be connected to Slack, otherwise the action fails.</li>

              </ul>
            </td>

          </tr>
        </tbody>
      </table>

## Set Slack Message Details

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:33.33333333333333%">
          <col style="width:66.66666666666666%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d196571e161">Input Parameter</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d196571e164">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d196571e161 ">
              <strong class="uicontrol">Slack Conversation ID</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d196571e164 ">
              <p>Required. The ID of the channel or direct message to send the message to.
                Alternatively, specify a Slack user ID to send the message to the user via the Messages tab
                of the Slack app. Enter a value or select a resource.</p>
              <p id="flow_ref_elements_actions_slack_send_message__slackConversationIdObtain"><a name="flow_ref_elements_actions_slack_send_message__slackConversationIdObtain"><!-- --></a>You
                can obtain the Slack conversation ID by logging in to Slack.com and launching Slack in your
                browser. The conversation ID is the last parameter in the URL. For example, in this URL,
                the conversation ID is <code>C56789FGHIJ</code>:</p>
              <p style="margin-bottom:0;"><code>https://app.slack.com/client/T01234ABCDE/C56789FGHIJ</code></p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d196571e161 ">
              <strong class="uicontrol">Slack Message</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d196571e164 ">
              <p>Required. The message to send. For best results, include no more than 4,000
                characters. Slack truncates messages containing more than 40,000 characters. Enter a value
                or select a resource.</p>
              <p>Slack supports text formatting with Slack
                <code>mrkdown</code>. To disable formatting for a plain text message that contains
                Slack <code>mrkdown</code>, use an escape sequence.
              </p>
              <p style="margin-bottom:0;">Slack doesn’t support text formatting with HTML and renders
                rich text messages as plain text.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d196571e161 ">
              <strong class="uicontrol">Salesforce Record ID</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d196571e164 ">The record ID to send to the <a href="https://developer.salesforce.com/docs/platform/salesforce-slack-sdk/guide/views.html" target="_blank">view</a>. Defining a view is a pilot feature.
              For more information, see <a href="https://developer.salesforce.com/docs/platform/salesforce-slack-sdk/guide/views_create.html" target="_blank">Define a View</a> in the <em>Apex SDK for Slack
                (Pilot) Guide</em>.</td>

          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d196571e161 ">
              <strong class="uicontrol">Slack Message Timestamp</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d196571e164 ">
              <p>The timestamp of the Slack message. Specify a timestamp to start a Slack thread. Enter
                a value or select a resource. For example, enter
                <kbd>1234567890.123456</kbd>.
              </p>
              <p>The numerals before the period character (.)
                specify a Unix timestamp. The numerals after the period character specify
                microseconds.</p>
              <p style="margin-bottom:0;">You can store the Slack Message Timestamp output parameter of the Send
                Slack Message, Edit Slack Message, or Send Message To Launch Flow action as a resource to
                use later.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d196571e161 ">
              <strong class="uicontrol">View API Name</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d196571e164 ">The API name of the <a href="https://developer.salesforce.com/docs/platform/salesforce-slack-sdk/guide/views.html" target="_blank">view</a> that the Slack message is sent with.
              Defining a view is a pilot feature. For more information, see <a href="https://developer.salesforce.com/docs/platform/salesforce-slack-sdk/guide/views_create.html" target="_blank">Define a View</a> in the <em>Apex SDK for Slack
                (Pilot) Guide</em>.</td>

          </tr>
        </tbody>
      </table>

## Store Output Values

 
| OUTPUT Parameter | Description |
| --- | --- |
| **Slack Message Timestamp** | The timestamp of the sent message. |

## Usage

To use this action, you must accept the Slack Terms of Service in Setup and install one of the official Salesforce Slack apps in your Slack workspace.

#### See Also

- [Enable Salesforce for Slack Integrations](https://help.salesforce.com/s/articleView?id=slack.slack_apps_enable.htm&language=en_US)
- [_Salesforce Admins_: How Admins Can Connect Salesforce and Slack](https://admin.salesforce.com/blog/2021/how-admins-can-connect-salesforce-and-slack)