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
I have the same question (0)
  • Martin Dráb Profile Picture
    238,846 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,074 Super User 2026 Season 1 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,165 Super User 2026 Season 1 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
    238,846 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 470

#3
Adis Profile Picture

Adis 270 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans