Raise awareness of Copilot actions on Card, Document, and ListPlus pages
Enabled for | Public preview | General availability |
---|---|---|
Users by admins, makers, or analysts | Oct 1, 2024 | Oct 1, 2024 |
Business value
In 2024 release wave 1, the developer tools for Copilot in Business Central introduced Copilot prompt actions, a new way to draw attention to Copilot capabilities in your extensions. A prompt action is a standard action, which is rendered with greater prominence on the page, such as in a floating bar, and is connected to the Copilot brand.
In the first iteration, Business Central supported Copilot prompt actions on List, ListPart, Worksheet, and StandardDialog page types. To help with more Copilot experiences and address partner feedback, we're now introducing support for Copilot prompt actions on Card, Document, and ListPlus page types.
Feature details
You can now use Copilot prompt actions on Card, Document, and ListPlus page types to nudge users to use your Copilots on such pages. The required AL code follows the same model as when adding Copilot prompt actions to list pages.
As an example, this code adds four prompt actions to the Customer Card via a page extension, where two of the Copilot prompt actions are nested in a group.
pageextension 50110 "Customer with prompt" extends "Customer Card"
{
actions
{
addlast(Prompting)
{
action(DraftWithCopilot)
{
Caption = 'Draft with Copilot';
Ellipsis = true;
trigger OnAction()
begin
Message('Draft with Copilot pressed');
end;
}
action(OpenModal)
{
Caption = 'Open Modal';
Ellipsis = true;
trigger OnAction()
begin
RunModal(22);
end;
}
group(PromptGroup)
{
action(PromptAction1)
{
trigger OnAction()
begin
Message('PromptAction1 pressed');
end;
}
action(PromptAction2)
{
trigger OnAction()
begin
Message('PromptAction2 pressed');
end;
}
}
}
}
}
The example results in the user experience on the customer card shown in the following image.
The base application already uses Copilot prompt actions on cards—for example, on the Bank Reconciliation card where it provides multiple Copilot actions.
Important
Update 25.0 includes a change in behavior for Copilot prompt actions on all page types. These actions are no longer hidden automatically for on-premises deployments, making it easier for developers to implement and test Copilot extensions before release. To ensure that your on-premises customers are unaffected, you must use the Visible AL property to dynamically hide actions for these customers.
Tell us what you think
Help us improve Dynamics 365 Business Central by discussing ideas, providing suggestions, and giving feedback. Use the forum at https://aka.ms/bcideas.
See also
Launch Copilot experience (docs)