It looks like you're new here. Sign in or register to get started.
[EventSubscriber(ObjectType::Codeunit, Codeunit::"Reporting Triggers", 'SubstituteReport', true, true) local procedure RunMyReport(ReportId: Integer; RunMode: option Normal,ParametersOnly,Execute,Print,SaveAs,RunModal; RequestPageXml: Text; RecordRef: RecordRef; VAR NewReportId: Integer) begin if ReportId = report::"Job Create Sales Invoice" then NewReportId := report::JobCreateSalesInvoice_MyOne; end;
Answers
sample: