web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Convert an AX query into X++ code.

(0) ShareShare
ReportReport
Posted on by 568

Hi,

Can anybody please suggest me how to convert an AOT query HCMWORKERLISTPAGE into an X++ code.

Please advice.

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    udaY-ch Profile Picture
    5,186 on at

    Hi,

    There is no possibility to convert the AOT query into x++ code, yet you can use the query in the x++ code instead adding data sources into the x++ query.

    Best,

    Uday.

  • AXTechie2120 Profile Picture
    568 on at

    Hi,

    Can you please give some example.

  • Verified answer
    udaY-ch Profile Picture
    5,186 on at

    static void ExecuteAOTQueryCust_1SMC(Args _args)

    {

        QueryRun queryRun;

        ;

        queryRun = new QueryRun(queryStr(CustTable));//add any name of query here

        info(queryRun.query().toString());

    }

    Take a look at the link for your reference

    http://microsoft-dynamics-ax-erp.blogspot.com/2012/03/using-aot-query-object-in-x-code.html

  • AXTechie2120 Profile Picture
    568 on at

    Thanks udhay,

    For your valuable time.

  • udaY-ch Profile Picture
    5,186 on at

    Your most welcome

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans