{"title":"Page.PromptMode([PromptMode]) Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/page/page-promptmode-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-promptmode-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-promptmode-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":"The mode of a PromptDialog page that prompts the user for input and shows the output of a copilot interaction.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Syntax","slug":"syntax","at":172,"chars":149},{"level":2,"title":"Parameters","slug":"parameters","at":321,"chars":171},{"level":2,"title":"Return Value","slug":"return-value","at":492,"chars":113},{"level":2,"title":"Remarks","slug":"remarks","at":605,"chars":130},{"level":2,"title":"Related information","slug":"related-information","at":735,"chars":136}],"text":"> Version: _Available or changed with runtime version 12.1._\nThe mode of a PromptDialog page that prompts the user for input and shows the output of a copilot interaction.\n## Syntax\n```al\n[PromptMode := ]  Page.PromptMode([NewPromptMode: PromptMode])\n```\n> NOTE\n> This method can be invoked using property access syntax.\n## Parameters\nPage\nType: page-data-type\nAn instance of the page-data-type data type.\n*[Optional] NewPromptMode*\nType: ../promptmode/promptmode-option\nThe new prompt mode.\n## Return Value\n*[Optional] PromptMode*\nType: ../promptmode/promptmode-option\nThe prompt mode used for the page.\n## Remarks\nThis method is used when creating a generative AI dialog in Business Central. See ../../devenv-page-type-promptdialog.\n## Related information\npage-data-type\nGetting Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}