You are here:
Send Slack Message Action
Send a message to a Slack channel, direct message, or the Messages tab of a Slack app.
Required Editions
| View supported 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 Send Slack Message.
Set Connection Values for Slack
| Input Parameter | Description |
|---|---|
| Slack App | Required. The Slack app that executes 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. |
| Execute Action As | The entity that executes the action. Valid values are:
|
Set Slack Message Details
| Input Parameter | Description |
|---|---|
| Slack Conversation ID | 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. 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
|
| 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. Slack supports text formatting with Slack
Slack doesn’t support text formatting with HTML and renders rich text messages as plain text. |
| Salesforce Record ID | The record ID to send to the view. Defining a view is a pilot feature. For more information, see Define a View in the Apex SDK for Slack (Pilot) Guide. |
| 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. |
| View API Name | The API name of the view that the Slack message is sent with. Defining a view is a pilot feature. For more information, see Define a View in the Apex SDK for Slack (Pilot) Guide. |
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.

