# OnPageBackgroundTaskCompleted (Page Extension) trigger
> Version: _Available or changed with runtime version 4.0._
Runs after a page background task has successfully completed.
## Syntax
```al
trigger OnPageBackgroundTaskCompleted(TaskId: Integer; Results: Dictionary of [Text,Text])
begin
    ...
end;
```
### Parameters
TaskId
Type: ../../methods-auto/integer/integer-data-type
Specifies the ID of the background task that was run. The ID is automatically assigned to the background task when it is created.
Results
Type: Dictionary of [Text,Text]<../../methods-auto/dictionary/dictionary-data-type>
Specifies the results of the page background task.
## Related information
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>
../page/devenv-onpagebackgroundtaskcompleted-page-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/pageextension/devenv-onpagebackgroundtaskcompleted-pageextension-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/pageextension/devenv-onpagebackgroundtaskcompleted-pageextension-trigger/
