{"title":"PromptMode Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-promptmode-property/","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/properties/devenv-promptmode-property, 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/properties/devenv-promptmode-property","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":"Specifies the current mode of a PromptDialog page.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":112,"chars":20},{"level":2,"title":"Property value","slug":"property-value","at":132,"chars":304},{"level":2,"title":"Remarks","slug":"remarks","at":436,"chars":618},{"level":2,"title":"Related information","slug":"related-information","at":1054,"chars":173}],"text":"> Version: _Available or changed with runtime version 12.1._\nSpecifies the current mode of a PromptDialog page.\n## Applies to\n Page\n## Property value\nValue|Available or changed with|Description\nContent|runtime version 12.1|Showing the output of the copilot interaction.\nGenerate|runtime version 12.1|Generating the output of the copilot interaction.\nPrompt|runtime version 12.1|Prompting the user for input for the copilot interaction.\n## Remarks\nThe PromptMode property is used on pages that have the devenv-pagetype-property set to PromptDialog. The PromptDialog enables creating a generative AI dialog in Business Central. The default value is Prompt, which is the starting prompt mode. The PromptMode property can be changed at runtime. The other options are Generate, which triggers generating the output of the copilot interaction, and Content, which shows the output of the copilot interaction. You can programmatically set this property by setting the variable CurrPage.PromptMode before the page is opened. See ../devenv-page-type-promptdialog.\n## Related information\nGetting Started with AL<../devenv-get-started>\nDeveloping Extensions<../devenv-dev-overview>\n../devenv-page-type-promptdialog\ndevenv-pagetype-property"}