In the standard Dynamics 365 for Finance and Operations, there is a class called SysSetupFormRun
. The class is called during the run of every form in Dynamics 365 for Operations; therefore, it can be used to override one of the common behaviors for all Dynamics 365 for Finance and Operations forms. For example, different form background colors can be set for different company accounts, some controls can be hidden or added depending on specific circumstances, and so on.
In this recipe, we will modify the SysSetupFormRun
class to automatically add the About Dynamics 365 for Operations
button to every form in Dynamics 365 for Finance and Operations.
Carry out the following steps in order to complete this recipe:
- Add a new project, name it
MultipleForm
, and change the model to Application Platform, as shown in the following screenshot: - Add the
FormRun
class and create a new method with the following code snippet:
private void addAboutButton() ...