The views and opinions expressed in this blog are those solely of the author(s) and do not necessarily reflect Microsoft’s current policy, position, or branding. For official announcements and guidance on Dynamics 365 apps and services, please visit the Microsoft Dynamics 365 Blog.
Personalized Community is here!
Quickly customize your community to find the content you seek.
Now Available in Community - New TechTalk Videos for 2020
Read More about New TechTalks for 2020
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
I was fulfilling the requirement to customize SSRS report using extension in D365FO. Extending the data set and customizing the design using extension approach in D365FO is difficult but a journey full of learning.
Previously, in Microsoft Dynamics AX 2012, it was easy to add your custom code and to customize the design. But, in Microsoft Dynamics 365 for Finance and Operations, it is difficult and more logical than before.
In this tutorial, I will show you how to customize & extend data set and design of Free Text Invoice report. Let’s start.
I have to add two fields in the table and to show these fields in Free Text Invoice report. If you have come across the Free Text Invoice report. You may have noticed that it uses contract class, controller class, DP class and print management class to generate the report.
What you have to do to customize SSRS report using extension in D365FO is to create the extension of table, implement the events to insert the data into the extended fields, customize the design, extend the controller class and subscribe to the delegate of print management document type class to re-route the print management to execute your new design.
I have done the following steps:
[PostHandlerFor(classStr(FreeTextInvoiceDP), methodStr(FreeTextInvoiceDP, processReport))]
public static void FreeTextInvoiceDP_Post_processReport(XppPrePostArgs args)
FreeTextInvoiceDP dpInstance = args.getThis() as FreeTextInvoiceDP;
FreeTextInvoiceHeaderFooterTmp freeTextInvoiceHeaderFooterTmp = dpInstance.getFreeTextInvoiceHeaderFooterTmp();
FreeTextInvoiceTmp freeTextInvoiceTmp = dpInstance.getFreeTextInvoiceTmp();
while select forUpdate freeTextInvoiceTmp
freeTextInvoiceTmp.TotalAmounInWords = numeralsToTxt(freeTextInvoiceTmp.InvoiceAmount);
class FreeTextInvoiceControllerExt extends FreeTextInvoiceController
public static FreeTextInvoiceControllerExt construct()
return new FreeTextInvoiceControllerExt();
public static void main(Args _args)
SrsReportRunController formLetterController = FreeTextInvoiceControllerExt::construct();
FreeTextInvoiceControllerExt controller = formLetterController;
[SubscribesTo(classstr(PrintMgmtDocType), delegatestr(PrintMgmtDocType, getDefaultReportFormatDelegate))]
public static void getDefaultReportFormatDelegate(PrintMgmtDocumentType _docType, EventHandlerResult _result)
In this way, we can customize SSRS report using extension in D365FO
If you found any ambiguity or a better solution, please feel free to ask.
Blog: Click here
YouTube: Click here
GitHub: Click here
Take the stones people throw at you and use them to build a monument. – Robin Sharma
The post Customize SSRS report using extension in D365FO appeared first on NevoiTech Blog.
Business Applications communities