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

Namespace

ise_bots_apex

DynamicMenuItem Properties

Learn more about the properties available with the DynamicMenuItem class.

The DynamicMenuItem class includes these properties.

EntityId

API name representing the ID field of the related Salesforce object.

Signature

public String EntityId {get; set;}

1ise_bots_apex.DynamicMenuItem, EntityId

Property Value

Type: String

EntityIdValue

The ID value retrieved at run time for the associated object.

Signature

public String EntityIdValue {get; set;}

1ise_bots_apex.DynamicMenuItem, EntityIdValue

Property Value

Type: String

EntityName

API name or label of the object being referenced, for example Case, Contact, or a custom object such as Service__c.

Signature

public String EntityName {get; set;}

1ise_bots_apex.DynamicMenuItem, EntityName

Property Value

Type: String

EntityNameValue

The name of the specific object instance.

Signature

public String EntityNameValue {get; set;}

1ise_bots_apex.DynamicMenuItem, EntityNameValue

Property Value

Type: String

Label

The label used to define how the item must be displayed in the bot menu.

Signature

public String Label {get; set;}

1ise_bots_apex.DynamicMenuItem, Label

Property Value

Type: String

LabelValue

The value of the label displayed to the user for the menu item at run time.

Signature

public String LabelValue {get; set;}

1ise_bots_apex.DynamicMenuItem, LabelValue

Property Value

Type: String

SummaryTextWithFormula

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.

Signature

public String SummaryTextWithFormula {get; set;}

1ise_bots_apex.DynamicMenuItem, SummaryTextWithFormula

Property Value

Type: String

SummaryTextWithFormulaValue

The summary string based on the formula and object data.

Signature

public String SummaryTextWithFormulaValue {get; set;}

1ise_bots_apex.DynamicMenuItem, SummaryTextWithFormulaValue

Property Value

Type: String

sortByDate

The API name of a date or date/time field on the object that's used to sort the dynamic menu items.

Signature

public Date sortByDate {get; set;}

1ise_bots_apex.DynamicMenuItem, sortByDate

Property Value

Type: Date

sortByDateValue

The DateTime value used at run time to sort the menu items chronologically.

Signature

public Date sortByDateValue {get; set;}

1ise_bots_apex.DynamicMenuItem, sortByDateValue

Property Value

Type: Date