Report.GetSubstituteReportId(Integer) Method

Version: Available or changed with runtime version 2.0.

Gets the ID of the report that will be run by the platform after considering any substitutions made by extensions.

Syntax

NewReportId :=   Report.GetSubstituteReportId(ReportId: Integer)

Parameters

ReportId
 Type: Integer
The ID of the report for which you want to retrieve the ID of the possible report substitute.

Return Value

NewReportId
 Type: Integer
The ID of the report that will be run by the platform after considering any substitutions made by extensions.

Remark

If no object exists with the integer supplied in the Report.GetSubstituteReportId(Integer) method, the method won't fail. Instead, the method will just return the supplied integer.

Substituting Reports
Report Data Type
Get Started with AL
Developing Extensions