The AL developer preview is still evolving with frequent updates. Follow us on the Dynamics NAV Team Blog for the announcements.


Runs a report in preview or processing-only mode without showing the request page in the client. The method gets the request page parameter values as an input parameter string from a RUNREQUESTPAGE Method call.


The OnOpen and OnClose triggers on the request page will run even though the request page is not shown.


REPORT.EXECUTE (Number, Parameters[,RecordRef])  


Type: Integer

The ID of the report that you want to run. To specify the report from a list, on the View menu, choose Symbols.

If the report that you specify does not exist, then a run-time error occurs.

Type: Text or Code

A string of request page parameters as XML to use to run the report. The parameter string is typically retrieved from the return value a RUNREQUESTPAGE Method method call.

Type: RecordRef

The RecordRef that refers to a record in a table.


You typically use this method together with the RUNREQUESTPAGE Method method. The RUNREQUESTPAGE method runs a report request page without actually running the report, but instead, returns the parameters that are set on the request page as a string. You can then call the EXECUTE method to get the parameter string and run the report.

For a simple example that illustrates how to use the EXECUTE method, see example in the RUNREQUESTPAGE Method method topic.

See Also

Report Object

PRINT Method