ebs.getOptionSetItemDisplayNameById
Returns the display name of an optionset item based on the specified ID.
Syntax
Copy
ebs.getOptionSetItemDisplayNameById(optionSetName: string, optionSetItemId: string): string | null
Example
In this example, we request the display name of an optionset item 3024b356-7552-4f4b-ac59-d7b51a340a98 that belongs to the Customers optionset. The method returns the name of the item.
Copy
ebs.getOptionSetItemDisplayNameById("Customers", "3024b356-7552-4f4b-ac59-d7b51a340a98")
Response
Copy
"John Doe"