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)

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
    237,801 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,284 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

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