The following job prints a list with all the table id's and there name in AX. Handy when you have for example a record in a table with a RefTableId.
static void findTables(Args _args)
{
Dictionary dictionary;
TableId tableId;
tableName tableName;
;
dictionary = new Dictionary();
tableId = dictionary.tableNext(0);
tableName = dictionary.tableName(tableId);
while (tableId)
{
info(strfmt("%1 - %2",int2str(tableId), tableName));
tableId = dictionary.tableNext(tableId);
tableName = dictionary.tableName(tableId);
}
}
Abonneren op:
Reacties posten (Atom)
Geen opmerkingen:
Een reactie posten