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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Get related data entity for ax tables

(0) ShareShare
ReportReport
Posted on by 55

Hi all,

I'm trying to develop a form which can list out all the table names which is avialable on ax including custom table, and the entities which is using these tables. if the table is dont used in any of the entities, is should display blank. I was able to do that in the reverse order that if i have the entity name, i can get the related data sources, for that i refered "https://community.dynamics.com/ax/f/33/p/222796/786979#786979".

can anyone suggest me a solution to achive this.

Thanks in advance

Midhun.

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    239,381 Most Valuable Professional on at

    Dear Midun, please use short, descriptive tags to categorize your question. Full sentences such as your "How to get the related data entities for a table through x++ code." don't work well as categories of related questions.

  • Verified answer
    Mea_ Profile Picture
    60,286 on at

    So you know how to do build a list data entry -> tables.  Save this list somewhere, in a table for example and then add all other tables that are in AOT but not in the list, now you have a data source for your form.

    Another option is to use cross-references, if table is used in data entry there would be an entry to connect them. All cross-references sits in db, however, you need to keep them up to date.

    Don't forget that a view could be used as an entity data source or even other entity, so you need to factor this in your code as well.

  • Midhun Profile Picture
    55 on at

    Hi Martin, Sure i'll try to be specific. Thanks

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans