indexName2Id Function [AX 2012]

Updated: September 30, 2009

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

Retrieves the ID of an index.


int indexName2Id(int tableid, str indexname)

Parameter

Description

tableid

The ID of the table to which the index belongs.

indexname

The name of the index.

The ID of the index.

static void indexName2IdExample(Args _arg)
{
    indexid idx;
    tableid id;
    ;
 
    id  = tableName2Id("Address");
    idx = indexName2Id(id, "AddrIdx");
    print "Index ID for index name AddrIdx of table Address is " 
        + int2Str(idx);
    pause;
}

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

Community Additions

ADD
Show: