# OnPostReport (Report Extension) trigger
> Version: _Available or changed with runtime version 7.0._
Runs after a report is run.
## Syntax
```al
trigger OnPostReport()
begin
    ...
end;
```
## Remarks
This trigger is run after all data items are processed and after the base report's OnPostReport trigger. The trigger is not run if the report was stopped manually or by using the Quit before processing had concluded. Learn more about report trigger flow in Report triggers and runtime operations<../../devenv-report-triggers#overall-report-trigger-and-operations>.
Because this trigger is run after the report is processed, you can use it to inform users about the result of the report run. For example, if some records could not be processed, you could inform the user of this using the following code in this trigger.
```al
if ProblemsInReport then
Message(Text000, NumberOfErrors);
```
Create the following global text constant variable.
Text constant|ENU value
Text000|'%1 records were not processed'
## Related information
../report/devenv-onpostreport-report-trigger
OnPreReport (report extension) trigger<devenv-onprereport-reportextension-trigger>
../report/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/reportextension/devenv-onpostreport-reportextension-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/reportextension/devenv-onpostreport-reportextension-trigger/
