Hi Everyone, In this article we will see how we can run Customized report in place of standard Report using Report Management Codeunit. As we all know that sometimes we get the basic requirements from Client to do some minor changes in Standard Report. Accordingly, will see how we can do changes in standard report or Create custom report and then Run the custom report in place of standard Report. Step-(1) First we have to configure the new Report to replace it with Standard Report: As in this case i have already Customized Purchase Order (Report ID - 50100) Report as show below: Step-(2) Now create a procedure & subscribe it to the OnAfterSubstituteReport event , i.e, basically it will just replace the report specified by the ReportId with the newly created report as NewReportID parameter: codeunit 50100 "Substitute Report" { [EventSubscriber (ObjectType :: Codeunit , Codeunit ::ReportManagement, 'OnAfterSubstituteReport' , '' , true, true ) ]...
A hub of all my NAV/Business Central Codes.