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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to find class associated with form buttons?

(0) ShareShare
ReportReport
Posted on by 5

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.

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,035 Super User 2025 Season 2 on at

    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.

  • Suggested answer
    Kenneth Ariel Chaves Herrera Profile Picture
    on at

    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,

  • Martin Dráb Profile Picture
    237,880 Most Valuable Professional on at

    Unfortunately the last reply is completely unrelated to the question.

  • Suggested answer
    huijij Profile Picture
    19,811 on at

    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

  • Suggested answer
    Hossein.K Profile Picture
    6,648 on at

    Hi,

    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.

Helpful resources

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
Martin Dráb Profile Picture

Martin Dráb 584 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 254 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans