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)

How to connect projects to Classes, etc in Modelelement? (Dynamics AX 2012 R2)

(0) ShareShare
ReportReport
Posted on by

When Querying ModelElement in the model database , How do you connect classes to a project?  For the classes , methods, etc you can use the roothandle field as a where clause Criteria, but when i am looking at a project, the roothandle cannot be used to connect to the classes and other elements in a project.  I am dealing with trying to decipher what all of the various code, etc in a company's system is, and how it is all connected.  I have tried looking in the ModelElement &  Modelelementdata tables as well as the utilelements view.  Does anybody have a good solution here?  

Also, whether form the front end or the database, is there any way to generate something like a class diagram?  I am new to dealing with Dynamics, and only one division of my company is using  Dynamics AX 2012 R2. we are trying to figure out the full extent to which their environment has been customized. 

*This post is locked for comments

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

    There is a Reverse Engineering Tool, although I've never found it useful enough to actually use it for real work. But maybe it'll help you in some way.

    Regarding projects, it might be easier to start from projects and see what they contain, rather then starting with a class or so and trying to find a reference from there. I've never looked at how projects are stored in modelstore, but I used the TreeNode API in previous versions of AX. Here is an example.

    Also check if they use a version control system, ideally VSTS. In VSTS, changes committed at once are grouped in changesets, therefore you can see related changes. Also, every changset has information about who made it and when and ideally a comment explaining why the change was done. It's even possible to link changesets to task and requirements, which would allow you to find details about business reasons, find all code changes for a particular requirement and so on.

  • Community Member Profile Picture
    on at

    I tried using this code, and it errors out. In addition there are hundreds of projects in the system...

  • Martin Dráb Profile Picture
    239,385 Most Valuable Professional on at

    If you want our help with the error, you'll have to give us some details.

    I'm not sure what problem you have with hundreds of projects. If you had just a few projects, you probably wouldn't need any code at all. Using automation is a solution for exactly this problem.

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