Quantcast
Channel: Dynamics AX
Viewing all articles
Browse latest Browse all 550

Queries query classes example in AX 2012

$
0
0
static void Query_cntRecords(Args _args)
{
Query query = new Query();
QueryRun queryRun;
QueryBuildDataSource qbd;
int64 iCountRecords;
;

qbd = query.addDataSource(tablenum(CustTable));
queryRun = new QueryRun(query);
iCountRecords = SysQuery::countTotal(queryRun);

info(strfmt("Total Records in Query %1", SysQuery::countTotal(queryRun)));

}

Viewing all articles
Browse latest Browse all 550

Trending Articles