To fetch the table names from AOT in AX:

Hi,
Use below code to fetch the table names in AX.

static void tablelist(Args _args)
{
tableId tableId;
int tablecounter;
Dictionary dict = new Dictionary();
container tableNamesList;
;

for (tablecounter=1; tablecounter<=dict.tableCnt(); tablecounter++)
{
tableId = dict.tableCnt2Id(tablecounter);
//tableNamesList = conIns(tableNamesList,1,dict.tableName(tableId));
info(dict.tableName(tableId));
}
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s