{"title":"OnPageBackgroundTaskCompleted (Page Extension) trigger","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/pageextension/devenv-onpagebackgroundtaskcompleted-pageextension-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/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.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/triggers-auto/pageextension/devenv-onpagebackgroundtaskcompleted-pageextension-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 a page background task has successfully completed.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"OnPageBackgroundTaskCompleted (Page Extension) trigger","slug":"onpagebackgroundtaskcompleted-page-extension-trigger","at":0,"chars":830},{"level":2,"title":"Syntax","slug":"syntax","at":179,"chars":476},{"level":3,"title":"Parameters","slug":"parameters","at":309,"chars":346},{"level":2,"title":"Related information","slug":"related-information","at":655,"chars":175}],"text":"# OnPageBackgroundTaskCompleted (Page Extension) trigger\n> Version: _Available or changed with runtime version 4.0._\nRuns after a page background task has successfully completed.\n## Syntax\n```al\ntrigger OnPageBackgroundTaskCompleted(TaskId: Integer; Results: Dictionary of [Text,Text])\nbegin\n    ...\nend;\n```\n### Parameters\nTaskId\nType: ../../methods-auto/integer/integer-data-type\nSpecifies the ID of the background task that was run. The ID is automatically assigned to the background task when it is created.\nResults\nType: Dictionary of [Text,Text]<../../methods-auto/dictionary/dictionary-data-type>\nSpecifies the results of the page background task.\n## Related information\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>\n../page/devenv-onpagebackgroundtaskcompleted-page-trigger"}