Tuesday, December 1, 2009

Displaying the text format of an AX Query

Question: How can you print the query associated with an AX Query?

Answer:
static void printQuery(Args _args)
{
Query query = new Query(querystr(MyQuery));
;
info(query.dataSourceNo(1).toString());
}