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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to retrieve the query of existing report?

(0) ShareShare
ReportReport
Posted on by 504

Hi,

In Dynamic AX 2012,  there are multiple report available out of the box for the General Ledger and

I would like to retrieve the query  statement from one of those report and use it to create SQL SSRS report.

Is there the way that I can do this ?  Please advised!

Thanks,

Dee

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Faisal Fareed Profile Picture
    10,796 User Group Leader on at

    Hi DDee,

    What specific report's query you want to use to create SQL SSRS report? Easiest option would be to create view from the queries used in SSRS report in AX 2012 and then use those views from SQL server. You would also need to check if the report in AX 2012 is a query based report or its using DP classes. If its query based report you can use that query in view and get it from SQL, and if its not query based report then you would have to create the view in AOT by putting tables there which are being used in DP class.

  • DDee Profile Picture
    504 on at

    Hi Faisal,

    Thank you for your reply.  The report call "Summary Trial balance".

    Regards,

    Ddee

  • Suggested answer
    Faisal Fareed Profile Picture
    10,796 User Group Leader on at

    Hi DDee,

    This report is build using DP class LedgerTrialBalanceDP, have a look on this class to find out what tables and query its using to create view using same logic.

    BTW why do you want to create same report as SQL SSRS and why don't you use the standard report?

  • DDee Profile Picture
    504 on at

    Hi Faisal,

    The reason is this report in AX doesn't allow to retrieve data more than 3 months due to the volume of the data.  Do you have any suggestion?

    Thanks,

    Ddee

  • Suggested answer
    Faisal Fareed Profile Picture
    10,796 User Group Leader on at

    What parameters you have selected to run the report? Are you running it for all financial dimension sets?

  • DDee Profile Picture
    504 on at

    Hi Faisal,

    I am not running it for all financial dimension set.

    I select:

    Primary financial dimension set:  Account receivable

    Main account: Account receivable

    Date range

    All other are default.

    Thanks,

    Ddee

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans