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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to get metadata from a specific model with x++

(1) ShareShare
ReportReport
Posted on by 72
Hi All,
I come across a requirement to get metadata (all tables or forms or classes) from a given model.
I checked many blogs & got to know about metadata API & metadatasupport class. using this I can get alltables or other objects but didn't get how to get this metadata (all table or forms) from a given model only.
 
Thanks & Regards, 
Rahul
  • Martin Dráb Profile Picture
    241,637 Most Valuable Professional on at
    I would have to look at properties of those metamodel classes, but I would expect a property such as Model that you can then use for filtering. Isn't it the case?
  • Suggested answer
    Waed Ayyad Profile Picture
    9,228 Super User 2026 Season 2 on at
     
    Did you try to go to AOT, right click then choose model view?
    Also did you try to search meta data from search on the AOT?
     
     
    Thanks,
    Waed Ayyad
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
     
  • Rahul Dahiya Profile Picture
    72 on at
    Hi Martin,
    I didn't find any Model property to filter metadata based on model. these are .NET classes & not present in AOT as well. Is their any documentation available on these classes & property.
     
    Thanks & Regards,
    Rahul
  • Rahul Dahiya Profile Picture
    72 on at
    Hi Waed,
    yes we can access any object in AOT directly but I asked in reference of x++. How can we do it with x++ code.
  • Layan Jwei Profile Picture
    8,428 Super User 2026 Season 2 on at
    Hi Rahul,
     
    Can you please show us the code you used to get metadata of all models based on the blogs u followed. And then maybe we can help you to get it for a certain model.
     
    Thanks,
    Layan Jweihan
  • Martin Dráb Profile Picture
    241,637 Most Valuable Professional on at
    Does MetadataSupport::GetModelsOfMetadataArtifact() gives you what you want for a single element?
     
    There is no documentation, as far as I know.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 274 Super User 2026 Season 2

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 213

#3
Subra Profile Picture

Subra 202 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans