Notifications
Announcements
No record found.
Hello
Is there a way we can read the metadata properties of table fields like the name, Label, mandatory, editable....etc of a specific table as a parameter?
Thanks
Srikanth
Hi Srikanth,
Please try like mentioned in link below:
community.dynamics.com/.../read-properties-of-table-fields-using-x-code
Please refer to the following link and you can ergodic properties of the fields:
www.fatihdemirci.net/.../.
And if you want to set the properties of the field, TreeNode.AOSsetProperty() is what you need:
#Properties
TreeNode fieldNode = TreeNode::findNode(@"\Data Dictionary\Tables\Address\Fields\Name");
fieldNode.AOTsetProperty(#PropertyMandatory, enum2str(NoYes::Yes));
Both replies above contains good examples. As you posted the question in the Dynamics 365 for Finance forum, I want to make one correction on the reply from MattGuo. In Microsoft Dynamics 365, the AOTsetProperty() and other AOT...() methods are not working anymore. This is because there is a split between the client and development environment.
I would use the new metadata API instead of the old ways.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 660 Most Valuable Professional
André Arnaud de Cal... 549 Super User 2025 Season 2
Sohaib Cheema 307 User Group Leader