Skip to main content

GetValueListItemIconURL

Description

Retrieves the URL of the icon associated with a specific value list item.

Syntax

// shellUI points to instance of IShellUI
const result = await shellUI.GetValueListItemIconURL(valuelist, valuelistItem);

Parameters

NameOptionalityTypeDescription
valuelistRequirednumberThe ID of the value list.
valuelistItemRequirednumberThe ID of the value list item.

Return type

TypeDescription
Promise < string >A promise that resolves to the icon URL if the item has an icon; otherwise, an empty string.