OnAfterSubstituteReport request extra parameters
Can the OnAfterSubstituteReport" publisher in report:44:"ReportManagement" be extended with the parameters RecordRef; RunMode; RequestPageXml?
Use case: For example if country_code is 'RU' use substitute report id with 50001 else don't substitute the reportid. or if print use reportid 50001 if RunMode=execute use 50002.
This is a good suggestion. We also need an additional parameter (RecordRef or RecordID will be fine). We substitute a report with another report depending on a field in the record. To select the right substition we need the record.
I'm not sure if this is what you're reffering to but the SubstituteReport already has all the parameters that you mentioned. See if the following works for your case:

Thanks for the answer. That is exactly what we need.