# OnPreReport (Report) trigger
> Version: _Available or changed with runtime version 1.0._
Runs before a report is run.
## Syntax
```al
trigger OnPreReport()
begin
    ...
end;
```
## Remarks
This trigger runs after the OninitReport trigger and request page (if any) are run, before data items are processed. Learn more about report trigger flow in Report triggers and runtime operations<../../devenv-report-triggers#overall-report-trigger-and-operations>.
The table views and filters for the report data items are set while this trigger is run. As this trigger is run after the request page is processed, you have access to any filters the user has set. If you want to print the settings of these filters in the report, you can retrieve them using the following text string.
```al
ReportFilter := SomeRecord.GetFilters;
```
Use the ReportFilter text string as the source expression for a control in a section of the report.
## Related information
devenv-oninitreport-report-trigger
devenv-onprereport-report-trigger
Report triggers and runtime operations<../../devenv-report-triggers>
Get started with AL<../../devenv-get-started>
Developing extensions<../../devenv-dev-overview>

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/triggers-auto/report/devenv-onprereport-report-trigger, 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. https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/report/devenv-onprereport-report-trigger/
