{"title":"OnAfterGetCurrRecord (Page) trigger","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/page/devenv-onaftergetcurrrecord-page-trigger/","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/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.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/triggers-auto/page/devenv-onaftergetcurrrecord-page-trigger","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 after the current record is retrieved from the table.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Syntax","slug":"syntax","at":119,"chars":70},{"level":2,"title":"Remarks","slug":"remarks","at":189,"chars":618},{"level":2,"title":"Related information","slug":"related-information","at":807,"chars":475}],"text":"> Version: _Available or changed with runtime version 1.0._\nRuns after the current record is retrieved from the table.\n## Syntax\n```al\ntrigger OnAfterGetCurrRecord()\nbegin\n    ...\nend;\n```\n## Remarks\nIn 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.\nIf there is an error in the trigger code, then the page is closed.\n> IMPORTANT\n> 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.\n## Related information\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>\nOnAfterGetCurrRecord (Request Page) Trigger<../requestpage/devenv-onaftergetcurrrecord-requestpage-trigger>\nOnAfterGetCurrRecord (Request Page Extension) Trigger<../requestpageextension/devenv-onaftergetcurrrecord-requestpageextension-trigger>\nOnAfterGetCurrRecord (Page Extension) Trigger<../pageextension/devenv-onaftergetcurrrecord-pageextension-trigger>"}