Global::legacyID2Name Method [AX 2012]
Converts the legacy ID of an element to the name of an element.
Syntax
client server public static UtilElementName legacyID2Name(
UtilElementType _type,
int _legacyId,
[UtilElementName _parentName])
Run On
Called
Parameters
- _type
Type: UtilElementType Enumeration
The type of the element.
- _legacyId
Type: int
The legacy ID of the element.
- _parentName
Type: UtilElementName Extended Data Type
The name of the parent of the element; optional.
Return Value
Type: UtilElementName Extended Data Type
The name of the element that has the specified legacy ID; otherwise, an empty string.