tableName2Id Function [AX 2012]

Updated: November 18, 2009

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

Retrieves the ID of a table.


int tableName2Id(str _name)

Parameter

Description

_name

The name of the table.

The ID of the table.

static void tableName2IdExample(Args _arg)
{
    str s;
    tableid id;
    ;
 
    // Get the ID for the Address table name.
    id = tableName2Id("Address");  
    print "ID for the Address table name is " + int2Str(id);
    // Get the name from the table ID.
    s = tableId2Name(id);          
    print "Name for table ID " + int2Str(id) + " is " + s;
    // Get the printable name from the table ID.
    s = tableId2PName(id);         
    print "Printable name for table ID " + int2Str(id) + " is " + s;
    pause;
}

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

Community Additions

ADD
Show: