Links

Send Slack Message

Sends a message to a Slack channel or as a direct message
The Gradient Works Slack app must be installed in your workspace to use this action. This action runs asynchronously and does not have any result outputs.
The message body supports @ mentioning other users in a couple of ways:
  1. 1.
    Using a Salesforce User record or Id (The User's email must match in Salesforce and Slack)
  2. 2.
    Slack display name
Need to show additional record information at a glance?
Use the "Fields to Display" section of the action editor to customize what information we include about Salesforce records in the Slack message.
To add a link to a record in the Slack message, add a record in the "Linked Records" section. We'll include a "View in Salesforce" button in the Slack message.

Configuration

Flow Element
Apex Properties
Please note that you will not directly interact with these input fields as you do with some Flow Actions. Instead the Gradient Works custom editor takes care of the heavy lifting.
Name
Required
Type
Description
message
Yes
String
The message text.
attachmentFields
No
String
Deprecated
attachmentId
No
Id
Deprecated
attachmentRecord
No
SObject
Deprecated
channel
No
String
A Slack channel id or name to send a message to
fieldsJson
No
String
List of fields to display in Slack message
linkedRecordsJson
No
String
List of records to link to in Slack message
notificationType
No
String
The type of message that will be sent. One of: Channel or Direct Message
recipientApiId
No
String
A Slack User Id to send a direct message to
recipientIdentifier
No
String
A Salesforce User Id or Email to send a direct message to
recipientRecord
No
User
A Salesforce User record to send a direct message to