Edit a message that was previously sent to Slack.
Required Editions
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.
| Input Parameter |
Description |
|
Slack App ID for Token
|
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.
The Slack app must be a member of the conversation that contains the message to edit.
|
|
Slack Conversation ID
|
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.
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 C56789FGHIJ:
https://app.slack.com/client/T01234ABCDE/C56789FGHIJ
|
|
Slack Message
|
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.
Slack supports text formatting with Slack
mrkdown. To disable formatting for a plain text message that contains
Slack mrkdown, use an escape sequence.
Slack doesn’t support text formatting with HTML and renders
rich text messages as plain text.
|
|
Slack Message Timestamp
|
Required. The timestamp of the message sent. Enter a value or select a resource. For
example, enter 1234567890.123456.
The numerals before the period
character (.) specify a Unix timestamp. The numerals after the period character specify
microseconds.
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.
|
|
Slack Workspace ID for Token
|
Required. The Slack workspace where the Slack app is installed.
Select a value or resource. The input value evaluates to the Slack workspace ID.
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 T01234ABCDE:
https://app.slack.com/client/T01234ABCDE/C56789FGHIJ
|
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.