---
schema_version: "1"
id: 8a6a8b8cbe9b5fba4b83160e87bf814adb60736dc1fd9e6828bd325931e469d1
title: Edit 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_edit_message.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_actions_slack_edit_message.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 9f412efc7896c22924ab5071d7bf8a427fa36815bbecc7c267f7afabb1617665
description: Edit a message that was previously sent to Slack.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Edit Slack Message Action

Edit a message that was previously sent to Slack.

### 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 **Edit Slack Message**.

## Set Input Values

The flow sends the connection values that you provide to Slack to retrieve an access token.

<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="d293280e83">Input Parameter</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d293280e86">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Input Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d293280e83 ">
              <strong class="uicontrol">Slack App ID for Token</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d293280e86 ">
              <p>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>
              <p style="margin-bottom:0;">The Slack app must be a member of the conversation that contains the message to edit.</p>
            </td>

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

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d293280e86 ">
              <p>Required. The ID of the channel or the direct message to send the message to.
                Alternatively, specify a Slack user ID if the message was sent 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_edit_message__slackConversationIdObtain"><a name="flow_ref_elements_actions_slack_edit_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="d293280e83 ">
              <strong class="uicontrol">Slack Message</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d293280e86 ">
              <p>Required. The message to send. Use alongside Post Message action. 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. This action only supports editing messages
                with standard markdown formatting.</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="d293280e83 ">
              <strong class="uicontrol">Slack Message Timestamp</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d293280e86 ">
              <p>Required. The timestamp of the message sent. 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="d293280e83 ">
              <strong class="uicontrol">Slack Workspace ID for Token</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d293280e86 ">
              <p>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>
              <p>You can obtain the Slack workspace ID by logging in to
                Slack.com and launching Slack in your browser. The workspace ID is the penultimate parameter
                in the URL. For example, in this URL, the workspace ID is <code>T01234ABCDE</code>:</p>
              <p style="margin-bottom:0;">
                <code>https://app.slack.com/client/T01234ABCDE/C56789FGHIJ</code>
              </p>
            </td>

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

## 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)