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 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
    303,669 Super User 2026 Season 1 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
    Microsoft Employee 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
    239,022 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

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
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 617

#2
André Arnaud de Calavon Profile Picture

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

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 298 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans