Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

SQL Query

(0) ShareShare
ReportReport
Posted on by

Hello! I would like to run a query in Excel to get data about outstanding invoices (at an historical date).  

Of course I have a report in AX which does this in pdf. Can I somehow use the SQL query from the AX report in excel?

*This post is locked for comments

  • Verified answer
    André Arnaud de Calavon Profile Picture
    293,110 Super User 2025 Season 1 on at
    RE: SQL Query

    Hi Johan,

    Using AX2009 you can also save the report in HTML format and then open it using Excel. You have the option to save the report as one single large page from within AX, so you don't get the headers for each page.

  • Suggested answer
    Amir Nazim Profile Picture
    5,994 on at
    RE: SQL Query

    Open AOT > form > open VendTrans form

    make filter on balance field to exclude 0 values

    make filter on invoice field to exclude empty records.

    then Ctrl +E to export data to excel :)

  • Community Member Profile Picture
    on at
    RE: SQL Query

    To bad we still run 2009 !

  • Community Member Profile Picture
    on at
    RE: SQL Query

    Thanks but not a grid. Its a report. Any other suggestions?

  • Suggested answer
    Fx Profile Picture
    425 on at
    RE: SQL Query

    Hi

    ,

    I will avoid to play lottery today ...

    Maybe you can use the key shortcut "Ctrl +E". It will export your current form grid content to Excel.

    Keyboard Shortcuts for AX 2009

    Regards

    FX

  • Suggested answer
    Amir Nazim Profile Picture
    5,994 on at
    RE: SQL Query

    you can not use the sql queries but yes through excel addin you can use AOT queries to fetch AX data in excel.

    for your specific task you can use VendOpenInvoicesListPage AOT query, this will give you outstanding invoice list

    on use of excel addin, link below will help you.

    community.dynamics.com/.../working-with-microsoft-dynamics-ax-2012-s-excel-add-in-tools.aspx

  • Community Member Profile Picture
    on at
    RE: SQL Query

    Too bad - we are still on 2009 !

  • Suggested answer
    Fx Profile Picture
    425 on at
    RE: SQL Query

    Hi Johan, 

    Can you tell us which version of AX did you use ?

    Considering you are using AX2012 version, you can take a look to the Office Add-ins, especially the Excel one.

    Here you have a good blog on it: Using the Dynamics AX Excel Add-In

    Regards

    FX

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,110 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,886 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans