Tuesday, 2 December 2014

AX 2012 job to run AOT Query

static void ExecAOTQuery(Args _args)

{

QueryRun queryRun;

Counter totalRecords;
;
queryRun = new QueryRun(queryStr(CreatedAOTQueryName));

       if (queryRun.prompt())

      {

            while (queryRun.next())

            {

                      totalRecords++;

            }

       }

info(strFmt(“Total Records : %1”, totalRecords));

}

No comments:

Post a Comment

Calculate ledger balance by dimension set in X++ in AX2012/Dynamics 365 FO

There are a variety of ways users can view balances in the general ledger. Some of the most common options are: 1. Trial balance 2. Financia...