{"title":"Page.Run() Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/page/page-run--method/","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/methods-auto/page/page-run--method, 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/methods-auto/page/page-run--method","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":"Creates and launches a page that you specify.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Syntax","slug":"syntax","at":151,"chars":32},{"level":2,"title":"Parameters","slug":"parameters","at":183,"chars":85},{"level":2,"title":"Remarks","slug":"remarks","at":268,"chars":788},{"level":2,"title":"Example","slug":"example","at":1056,"chars":36},{"level":2,"title":"Related information","slug":"related-information","at":1092,"chars":132}],"text":"> Version: _Available or changed with runtime version 1.0._\nCreates and launches a page that you specify. You can use CLEAR method to remove the page.\n## Syntax\n```al\n Page.Run()\n```\n## Parameters\nPage\nType: page-data-type\nAn instance of the page-data-type data type.\n## Remarks\nIf, at design time, you don't know the specific page you want to run, then use this method or the page-runmodal--method and specify the page in the Number parameter.\nIf you do know, which page you want to run, then you can create a Page variable, set the subtype of the variable to a specific page, and then use the RunMethod \\(Page\\)<page-run--method> or page-runmodal--method on the Page variable.\nWhen you want to close the page, use CurrPage.Close. CurrPage is a predefined system variable. See ../../devenv-system-defined-variables.\nThe Run method will clear the instance of the page every time Run completes, which means that all variables inside the page are initialized. The RunModal method doesn't clear the instance of the page every time. See page-runmodal--method.\n## Example\n```al\nPage.Run(4711)\n```\n## Related information\npage-data-type\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}