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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to add/call class method in aot query in d365

(0) ShareShare
ReportReport
Posted on by 950

Hi all,

I have a aot query which has one datasource. i need to add/call one method from a class to this aot query so that this method executes first.

where can i add!

any suggestions pls

I have the same question (0)
  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi TestBot,

    Could you, please, provide more information about your requirements?

    Are you doing SSRS development and you use query as a parameter on the dialog and you want to prepare some data before report is rendered?

  • TestBot Profile Picture
    950 on at

    Hi Sergei ,

    yes i am using it for ssrs report but my report is Querybased Report. Before running the report , i need to call the class method in AOT query so that this(class method) executes first

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi TestBot,

    What is the purpose of this method?

  • TestBot Profile Picture
    950 on at

    Hi Sergei,

    That method fetches Azure table data and updates to my D365 table(which i used as datasource in my query). so this method needs to be executed first to fill/update my table and then my report should open

  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi TestBot,

    In this case it's better to use Report data provider approach instead of query. You can fetch data from Azure table data in processReport method and store it in temp table.

    docs.microsoft.com/.../how-to-use-a-report-data-provider-class-in-a-report

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans