DynamicMenuItem Class
Contains properties to define and hold the details for a single dynamic menu item Each item contains information related to an object, such as identifiers, labels, summaries, and sorting logic. It enables bots to present context-aware and user-relevant choices dynamically during conversations. .
-
Learn more about the properties available with the DynamicMenuItem class.
Learn more about the properties available with the DynamicMenuItem class.
The DynamicMenuItem class includes these properties.
-
API name representing the ID field of the related Salesforce object.
-
The ID value retrieved at run time for the associated object.
-
API name or label of the object being referenced, for example Case, Contact, or a custom object such as Service__c.
-
The name of the specific object instance.
-
The label used to define how the item must be displayed in the bot menu.
-
The value of the label displayed to the user for the menu item at run time.
-
A formula or a string of text that defines the structure of the summary text displayed for the item. This formula is used to construct a dynamic summary for the user after they make a selection.
-
The summary string based on the formula and object data.
-
The API name of a date or date/time field on the object that’s used to sort the dynamic menu items.
-
The DateTime value used at run time to sort the menu items chronologically.
API name representing the ID field of the related Salesforce object.
public String EntityId {get; set;}
Type: String
The ID value retrieved at run time for the associated object.
public String EntityIdValue {get; set;}
Type: String
API name or label of the object being referenced, for example Case, Contact, or a custom object such as Service__c.
public String EntityName {get; set;}
Type: String
The name of the specific object instance.
public String EntityNameValue {get; set;}
Type: String
The label used to define how the item must be displayed in the bot menu.
public String Label {get; set;}
Type: String
The value of the label displayed to the user for the menu item at run time.
public String LabelValue {get; set;}
Type: String
A formula or a string of text that defines the structure of the summary text displayed for the item. This formula is used to construct a dynamic summary for the user after they make a selection.
public String SummaryTextWithFormula {get; set;}
Type: String
The summary string based on the formula and object data.
public String SummaryTextWithFormulaValue {get; set;}
Type: String
The API name of a date or date/time field on the object that’s used to sort the dynamic menu items.
public Date sortByDate {get; set;}
Type: Date
The DateTime value used at run time to sort the menu items chronologically.
public Date sortByDateValue {get; set;}
Type: Date