---
schema_version: "1"
id: 41514adc6feb2e3151048b2c06bc00ed0f8cdc620494d910fc3ed199f6a1ee25
title: DynamicMenuItem Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_ise_bots_apex_DynamicMenuItem.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_ise_bots_apex_DynamicMenuItem.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: e64eca43b8af9f6660e77824e219b54185f4646aab187a227336cb625b5ff3d3
description: 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.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.
---
# 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_ise_bots_apex.htm "The ise_bots_apex namespace provides classes and properties to facilitate dynamic content generation and data handling for menu-driven bot interactions. Create and manage dynamic menu items that adapt to user inputs, context, and underlying object data.")

- **[DynamicMenuItem Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_ise_bots_apex_DynamicMenuItem.htm#apex_ise_bots_apex_DynamicMenuItem_properties)**  
    Learn more about the properties available with the DynamicMenuItem class.

## DynamicMenuItem Properties

Learn more about the properties available with the DynamicMenuItem class.

The DynamicMenuItem class includes these properties.

- **[EntityId](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_ise_bots_apex_DynamicMenuItem.htm#apex_ise_bots_apex_DynamicMenuItem_EntityId)**  
    API name representing the ID field of the related Salesforce object.
- **[EntityIdValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_ise_bots_apex_DynamicMenuItem.htm#apex_ise_bots_apex_DynamicMenuItem_EntityIdValue)**  
    The ID value retrieved at run time for the associated object.
- **[EntityName](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_ise_bots_apex_DynamicMenuItem.htm#apex_ise_bots_apex_DynamicMenuItem_EntityName)**  
    API name or label of the object being referenced, for example Case, Contact, or a custom object such as Service\_\_c.
- **[EntityNameValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_ise_bots_apex_DynamicMenuItem.htm#apex_ise_bots_apex_DynamicMenuItem_EntityNameValue)**  
    The name of the specific object instance.
- **[Label](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_ise_bots_apex_DynamicMenuItem.htm#apex_ise_bots_apex_DynamicMenuItem_Label)**  
    The label used to define how the item must be displayed in the bot menu.
- **[LabelValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_ise_bots_apex_DynamicMenuItem.htm#apex_ise_bots_apex_DynamicMenuItem_LabelValue)**  
    The value of the label displayed to the user for the menu item at run time.
- **[SummaryTextWithFormula](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_ise_bots_apex_DynamicMenuItem.htm#apex_ise_bots_apex_DynamicMenuItem_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.
- **[SummaryTextWithFormulaValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_ise_bots_apex_DynamicMenuItem.htm#apex_ise_bots_apex_DynamicMenuItem_SummaryTextWithFormulaValue)**  
    The summary string based on the formula and object data.
- **[sortByDate](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_ise_bots_apex_DynamicMenuItem.htm#apex_ise_bots_apex_DynamicMenuItem_sortByDate)**  
    The API name of a date or date/time field on the object that's used to sort the dynamic menu items.
- **[sortByDateValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_ise_bots_apex_DynamicMenuItem.htm#apex_ise_bots_apex_DynamicMenuItem_sortByDateValue)**  
    The DateTime value used at run time to sort the menu items chronologically.

### EntityId

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

#### Signature

public String EntityId {get; set;}

ise\_bots\_apex.DynamicMenuItem, EntityId

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### EntityIdValue

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

#### Signature

public String EntityIdValue {get; set;}

ise\_bots\_apex.DynamicMenuItem, EntityIdValue

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### 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;}

ise\_bots\_apex.DynamicMenuItem, EntityName

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### EntityNameValue

The name of the specific object instance.

#### Signature

public String EntityNameValue {get; set;}

ise\_bots\_apex.DynamicMenuItem, EntityNameValue

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### Label

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

#### Signature

public String Label {get; set;}

ise\_bots\_apex.DynamicMenuItem, Label

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### LabelValue

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

#### Signature

public String LabelValue {get; set;}

ise\_bots\_apex.DynamicMenuItem, LabelValue

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### 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;}

ise\_bots\_apex.DynamicMenuItem, SummaryTextWithFormula

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### SummaryTextWithFormulaValue

The summary string based on the formula and object data.

#### Signature

public String SummaryTextWithFormulaValue {get; set;}

ise\_bots\_apex.DynamicMenuItem, SummaryTextWithFormulaValue

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### 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;}

ise\_bots\_apex.DynamicMenuItem, sortByDate

#### Property Value

Type: [Date](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_date.htm#apex_methods_system_date "Contains methods for the Date primitive data type.")

### sortByDateValue

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

#### Signature

public Date sortByDateValue {get; set;}

ise\_bots\_apex.DynamicMenuItem, sortByDateValue

#### Property Value

Type: [Date](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_date.htm#apex_methods_system_date "Contains methods for the Date primitive data type.")