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

Best Practices for Troubleshooting Application Issues in D365 and Power Platform

When facing application issues, it’s important to systematically troubleshoot before reaching out for support.  Follow these steps to ensure...