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

Notifications

Announcements

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 70
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
I have the same question (0)
  • Martin Dráb Profile Picture
    238,318 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.
  • Layan Jwei Profile Picture
    8,163 Super User 2025 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
  • Rahul Dahiya Profile Picture
    70 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.
  • Rahul Dahiya Profile Picture
    70 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
  • Suggested answer
    Waed Ayyad Profile Picture
    9,047 Super User 2025 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
     
  • Martin Dráb Profile Picture
    238,318 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?

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

News and Announcements

Season of Giving Solutions is Here!

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
Abhilash Warrier Profile Picture

Abhilash Warrier 867 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 348 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans