Hi All,
I just want to clarify the usage of Substitude method in SaaS BC. If you want to add a new field a data set - say purchase order report 1322 and create RDLC version, then you have to create your own report - say 50322, and then also you need to use the substitute method with something like:
codeunit 50100 "Substitute Report" { [EventSubscriber(ObjectType::Codeunit, Codeunit::ReportManagement, 'OnAfterSubstituteReport', '', false, false)] local procedure OnSubstituteReport(ReportId: Integer; var NewReportId: Integer) begin if ReportId = Report::"1322" then NewReportId := Report::"50322"; end; }
This seems to look like a lot of work to add a new field unless there is an easier way?
Thanks