You are here:
Customizing Messaging Components with sObject Formulas
Use sObject formulas to control the way that your messaging components appear in any non-Text format.
Required Editions
| View supported editions. | |
This article applies to:
|
Enhanced In-App Chat, Enhanced Web Chat v1, Enhanced Web Chat v2, Enhanced WhatsApp, Enhanced Facebook Messenger, Enhanced Apple Messages for Business, Enhanced LINE, and Bring Your Own Channel |
This article doesn’t apply to:
|
Standard Facebook Messenger, and Standard and Enhanced SMS channels |
While you can use formula templates to customize the Text format of messaging components, sObject formulas customize all other supported formats, such as Buttons, Card Carousel, List Selector, and Quick Replies. sObject formulas create values that are related to parameters of the RecordId type. For example, in a question component with dynamic options where each option references a record, use sObject formulas to create the values for the options’ titles or images.
sObject formulas in messaging components behave similarly as they do elsewhere in Salesforce, such as with custom formula fields. They can also reference any parameters and constants that have been autogenerated or manually added to the component. View a messaging component’s constants and parameters by opening the component in the Messaging Component Builder.
{!$Parameters.MessagingSession.Case.Custom_Record__c.CustomField__c}CaseNumber & “ - “ & SubjectBecause the
formula is specific to the case object and can’t be applied to other objects, it
directly references case field names without adding the Case. prefix.
Here’s how a list item using this formula appears in a messaging session:
00001006 - Generator assembly instructions unclear


