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.
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}