Notifications
Announcements
No record found.
What is the Difference between AOT Queries and X++ queries ?
Give me some examples of AOT and X++ queries (Dynamic 365 Finance and Operations)
Hi sai,
Please refer to the follow link:
stackoverflow.com/.../41039435
community.dynamics.com/.../how-to-create-query-in-dynamics-365
www.tech.alirazazaidi.com/.../
Hi Sai,
Commonly, both will get data from the database. AOT queries are predefined, reusable objects. They can be used on forms, reports in coding , workflows and more.
X++ queries are created with help of business logic and here you can create a query on runtime based on several variables. If you have the need to have a different query based on e.g. type of information you can consider an x+ query. The you can create it from scratch and define which tables to use to the data sources. You can also call an AOT query and modify it using x++, all depending on the requirements.
If you need to use the same query again and again, it will be better to create an AOT query. To build a really advanced query, you might need over 50 lines of coding, To have the coding more readable, the AOT query will be better.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 544 Most Valuable Professional
André Arnaud de Cal... 450 Super User 2025 Season 2
Sohaib Cheema 250 User Group Leader