SS001

Hey guys, I am back with a Microsoft Dynamics 365 (D365) for Finance and Operations blog. In D365 to overcome over layering Microsoft introduced Extensions. So that’s what my blog will be about.
Lets start with class extension. So what do you do if you need to add a new method to a standard class? Well we create class extension. For this example we will create an extension of the class “SalesConfirmDP” and add a new method to this class. To do so first create a new class in you VS project like you normally do:

SS001

Add the final key word and the annotation [ExtensionOf(“ClassName”))]:

SS002

Now add your new method to this class:

SS003

This is how you add new methods to the class.
Now you can also extend forms
To do that right click on the form you want to extend in the AOT and select “Create extension”

SS004

A new extension form will be added to your project. Right click and select “Open”

SS005

Now you can add custom controls to your new form

SS006

Customizing reports is also a little different in D365 for Finance and Operations. Now what you do is duplicate the report. We take the example of “PurchRanking”. Right click on the AOT and select “Duplicate in project”

SS007

Make your customization to the report and deploy

SS008

This report is attached to a menu item, so we will have to extend the menu item and attach is to our new duplicate report. Right click the menu item and select “Create extension”

SS010

Set the menu item property “Object” to your new report:

SS011

Now run the report and you will see your new custom design.

That’s all for this blog guys. I will be back with more.

Leave a Reply

Recent Comments

    Archives

    Categories