fieldId2Name Function [AX 2012]

Updated: October 5, 2011

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Retrieves a String that represents the name of a field specified by a table ID number and a field ID number.

str fieldId2Name(int tableid, int fieldid)




The ID number for the table.

Use the tableName2Id function to specify the ID of a table.


The ID number of the field.

The name of the field.

To return a printable version of the field name, use the fieldId2PName Function.

The following example sets fn to the name of the field in the Customer (CustGroup) table whose field ID is 7.

static void fieldId2NameExample(Args _arg)
    str fn;
    fn = fieldId2Name(tableName2Id("Customer"),7);

Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).

Community Additions