typeId Function
Dynamics AX 2009
Retrieves the numeric ID of the specified extended data type.
int typeId(str typeName)
The following example assigns the numeric ID of the LogText extended data type to the MyTypesId variable.
static void typeIdExample(Args _args)
{
int MyTypeId;
;
MyTypeId = typeId(LogText);
Global::info(strfmt("%1 is the numeric ID of the LogText extended data type.", MyTypeId));
}
/****Infolog Display.
Message (01:45:00 pm)
117833739 is the numeric ID of the LogText extended data type.
****/
Community Additions
ADD
Show: