Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Convert an AX query into X++ code.

Posted on by 560

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

  • udaY-ch Profile Picture
    udaY-ch 4,624 on at
    RE: Convert an AX query into X++ code.

    Your most welcome

  • AXTechie2120 Profile Picture
    AXTechie2120 560 on at
    RE: Convert an AX query into X++ code.

    Thanks udhay,

    For your valuable time.

  • Verified answer
    udaY-ch Profile Picture
    udaY-ch 4,624 on at
    RE: Convert an AX query into X++ code.

    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
    AXTechie2120 560 on at
    RE: Convert an AX query into X++ code.

    Hi,

    Can you please give some example.

  • Suggested answer
    udaY-ch Profile Picture
    udaY-ch 4,624 on at
    RE: Convert an AX query into X++ code.

    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.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans