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

Is it possible to create a SQL query in a data entity?

(0) ShareShare
ReportReport
Posted on by 843
Hello,
 
I have a ready-made SQL query that made the user retrieve data from AX2012. How can I do the same thing in D365? Is it possible to put the SQL query as datasource in data entity and make it available to the user?
Or is there some other way? What is the best way to approach solving this problem?
 
Thanks.
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at
    No, it's not possible. You'll have to identify the relevant tables and add them as data sources, set up appropriate joins, decide whether the entity will support data import and so on.
     
    There is a place where you can use SQL. If you need to calculate a value by SQL, you can use a computed column. This means that you'll write X++ code generating SQL code and this piece of SQL code will be used as a definition of a field of the entity. Of course, this doesn't allow data import, but that's something you can handle by X++ code inside the entity.

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 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans