Notifications
Announcements
No record found.
I want to add more validation rules by extending a class for posting a pending vendor invoice; how can I back track from the form to the class I need to extend systematically?
I am new to d365 and want to know if there is an effective way of going through the items without knowing it by heart or spending hours reading all the classes.
Hi,
When you right-click on the form in the user interface, you can get information about the form name. Then in Visual Studio, you can browse to the form object and find the button; e.g. the button for posting the vendor invoice.
It could be either a menu-item button or another button. With a menu-item button, the object which will be executed is linked on the properties. This could be already the class who is doing the job; otherwise you can start reading from this object.
If it is not a menu-item button, there is coding on the clicked() method which should tell you what object will be called.
For sure, you will not be able to understand the full data model and classes used in hours. It would require lot more time to find your way.
Hi, I hope you are doing good.
The best way to extend functionality of a form and its components is adding code in JavaScript.
This tutorial can be extremely useful for you since you are new on this platform. Here the link:
Tutorial: Write your first client script in model-driven apps - Power Apps | Microsoft Docs
If this answers your question, please check it as verified to help others find useful information.
Welcome to this amazing community,
Unfortunately the last reply is completely unrelated to the question.
Hi sir,
Right click on any control at D365FO browser takes you directly to the control in AOT:
community.dynamics.com/.../d365fo-right-click-on-any-control-at-d365fo-browser-takes-you-directly-to-the-control-in-aot
regards
Each button relate with a menu item that the other guys said how to find it. when you find and open this menu item in AOT, in the property of this you can see the class which be related it.
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 584 Most Valuable Professional
André Arnaud de Cal... 499 Super User 2025 Season 2
Sohaib Cheema 254 User Group Leader