{"title":"Report.Execute(Text, Text [, RecordRef]) Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/report/report-execute-string-string-recordref-method/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/report/report-execute-string-string-recordref-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/report/report-execute-string-string-recordref-method","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Runs a report in preview or processing-only mode without showing the request page in the client.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"Report.Execute(Text, Text [, RecordRef]) Method","slug":"reportexecutetext-text-recordref-method","at":0,"chars":1288},{"level":2,"title":"Syntax","slug":"syntax","at":616,"chars":105},{"level":2,"title":"Parameters","slug":"parameters","at":721,"chars":440},{"level":2,"title":"See Also","slug":"see-also","at":1161,"chars":127}],"text":"# Report.Execute(Text, Text [, RecordRef]) Method\n> Version: _Available or changed with runtime version 17.0._\nRuns a report in preview or processing-only mode without showing the request page in the client. The preview document will be downloaded as a PDF file to the user's browser client, where it can be read with the PDF reader. It won't open the Business Central preview page in the browser. 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.\n## Syntax\n```al\n Report.Execute(FullyQualifiedName: Text, Parameters: Text [, RecordRef: RecordRef])\n```\n## Parameters\nFullyQualifiedName\nType: ../text/text-data-type\nThe fully qualified name of the report that you want to run.\nParameters\nType: ../text/text-data-type\nA 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 call.\n*[Optional] RecordRef*\nType: ../recordref/recordref-data-type\nThe RecordRef that refers to a record in a table.\n## See Also\nreport-data-type\nGetting started with AL<../../devenv-get-started>\nDeveloping extensions<../../devenv-dev-overview>"}