Merge Fields in Slack Notifications

To show record-specific information in your Slack notification, include merge fields in the notification content.

Required Editions

Available in: Lightning Experience
Available in: Essentials, Professional, Enterprise, Performance, Unlimited, and Developer Editions

Merge fields automatically include values from a record in your notification. The syntax for a merge field is {!Record.Field}. The fields that you can reference depend on the object that you select for the notification.

For example, you want to include the stage name of an Opportunity record in the title of your Slack notification. First, make sure to select Opportunity as the object for this notification. Then, in the notification title, include the merge field {!Record.StageName}.

Merge fields are supported in the notification title, body text, and button labels. You can use merge fields to reference custom objects and custom fields.

Note
Note Custom Slack notifications support only one nested level in a merge field. For example, {!Record.Field} is supported, but {!Record.ChildRecord.Field} isn’t supported.
Example
Example

This example notification alerts Slack users about a change in the stage of an Opportunity record.

Title: Stage update to {!Record.Name}

Body Text: The stage of {!Record.Name} is now {!Record.StageName}. The estimated amount of this opportunity is {!Record.Amount}.

Button Action: View Record

Button Label: View {!Record.Name}