Global::legacyID2Name Method [AX 2012]

Converts the legacy ID of an element to the name of an element.

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