{"title":"Page.RunModal(Text [, Record] [, Any]) Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/page/page-runmodal-string-table-joker-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-runmodal-string-table-joker-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-runmodal-string-table-joker-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, opens, and closes a page that you specify.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"Page.RunModal(Text [, Record] [, Any]) Method","slug":"pagerunmodaltext-record-any-method","at":0,"chars":1368},{"level":2,"title":"Syntax","slug":"syntax","at":282,"chars":108},{"level":2,"title":"Parameters","slug":"parameters","at":390,"chars":738},{"level":2,"title":"Return Value","slug":"return-value","at":1128,"chars":115},{"level":2,"title":"See Also","slug":"see-also","at":1243,"chars":125}],"text":"# Page.RunModal(Text [, Record] [, Any]) Method\n> Version: _Available or changed with runtime version 17.0._\nCreates, opens, and closes a page that you specify. When a page is run modally, no input, such as a keyboard or mouse click, can occur except for objects on the modal page.\n## Syntax\n```al\n[Action := ]  Page.RunModal(FullyQualifiedName: Text [, Record: Record] [, Field: Any])\n```\n## Parameters\nFullyQualifiedName\nType: ../text/text-data-type\nThe fully qualified name of the page that you want to run.\n*[Optional] Record*\nType: ../record/record-data-type\nBy default, this method shows the record that was last displayed on the page. For each object, information is stored about the most recently shown record and the attached key and filters. Use this optional parameter to select a specific record to display on the page. The record must be of the same type as the table that is attached to the page. When the record is displayed, the key and filters that are attached to the record are used.\n*[Optional] Field*\nType: ../any/any-data-type\nUse this optional parameter to select a specific field which will be in focus.\n## Return Value\n*[Optional] Action*\nType: ../action/action-option\nSpecifies what action the user took on the page.\n## See Also\npage-data-type\nGetting started with AL<../../devenv-get-started>\nDeveloping extensions<../../devenv-dev-overview>"}