Loading
Prepare for Email to Become the Default Login ExperienceRead More
Automate Your Business Processes with Salesforce Flow
Send Message to Launch Flow Action

Send Message to Launch Flow Action

Send a message to a Slack channel, direct message, or the Messages tab of a Slack app that includes a button that a recipient can use to launch a screen flow.

Required Editions

View supported editions.

In Flow Builder, add an Action element to your flow. In the New Action window, select Slack, and then select the name of the flow to send.

Set Connection Values for Slack

Input Parameter Description
Slack App

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.

Slack Workspace

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

Execute Action As

The entity that runs the action. Valid values are:

  • Slack App—Run the action as the Slack app that you selected in the Slack App field. It’s the default value.
  • 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.

Set Slack Message Details

Input Parameter Description
Slack Conversation ID

Required. The ID of the channel or the 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.

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. 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. The message to send can’t be edited. Using the Edit Message action or manual editing results in process failures.

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.

Button Label

Required. The label for the button that appears below the message. The user clicks the button to launch the flow from Slack.

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 Bot Name The name of the bot that sends the message in Slack. Enter a value or select a resource.
Slack Message Timestamp

The timestamp of the Slack message. Specify a timestamp to start a Slack thread. 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.

Store Output Values

Input Parameter Description
Slack Message Timestamp The timestamp of the message sent.

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.

 
Loading
Salesforce Help | Article