# OnAfterGetCurrRecord (Page) trigger
> Version: _Available or changed with runtime version 1.0._
Runs after the current record is retrieved from the table.
## Syntax
```al
trigger OnAfterGetCurrRecord()
begin
    ...
end;
```
## Remarks
In a page with a repeater control, the trigger is only called when the current record in the repeater is updated. OnAfterGetCurrRecord is called directly after all OnAfterGetRecord triggers are called for each row in a list.
If there is an error in the trigger code, then the page is closed.
> IMPORTANT
> For pages of the type Card, List, ListPlus, Document, or Worksheet, the OnAfterGetCurrRecord trigger is called more than once if the page is opened in the edit mode and does not have any records to display. If the page is opened in the view mode or displays a record, the trigger is called only once.
## Related information
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>
OnAfterGetCurrRecord (Request Page) Trigger<../requestpage/devenv-onaftergetcurrrecord-requestpage-trigger>
OnAfterGetCurrRecord (Request Page Extension) Trigger<../requestpageextension/devenv-onaftergetcurrrecord-requestpageextension-trigger>
OnAfterGetCurrRecord (Page Extension) Trigger<../pageextension/devenv-onaftergetcurrrecord-pageextension-trigger>

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/page/devenv-onaftergetcurrrecord-page-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/page/devenv-onaftergetcurrrecord-page-trigger/
