# OnPostDataItem (Report Data Item) trigger
> Version: _Available or changed with runtime version 1.0._
Runs after a data item is processed.
## Syntax
```al
trigger OnPostDataItem()
begin
    ...
end;
```
## Remarks
This trigger runs after the last record in the data item is processed but before the ../report/devenv-onpostreport-report-trigger or the ../xmlport/devenv-onpostxmlport-xmlport-trigger is executed, if it is the last data item of the report or XMLport.
Use this trigger to perform any cleanup or post processing needed after a data item is processed. For example, if you create a non-printing report where records are updated, you can update all the records with the modification date like shown in the example below.
```al
ModifyAll("Modification Date",TODAY);
```
## Related information
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/reportdataitem/devenv-onpostdataitem-reportdataitem-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/reportdataitem/devenv-onpostdataitem-reportdataitem-trigger/
