D365 F&O: Canvas App Coauthoring with GitHub AI Agents
When embedding contextual canvas apps into Dynamics 365 Finance and Operations workspaces, development velocity often stalls on repetitive UI scaffolding, complex Power Fx formulas, and multi-entity Dataverse lookups. The introduction of in-studio agentic coauthoring powered by GitHub accounts fundamentally transforms this delivery model by introducing an autonomous AI pair-programmer directly into Power Apps Studio. Solution architects can now establish a collaborative engineering workflow where human makers and AI coding agents concurrently inspect, build, and refactor low-code workspace extensions against live D365 F&O virtual entities.
At a glance
- 🔹 Applies to: Dynamics 365 Finance & Operations (cloud releases 10.0.x), Power Apps Studio, Microsoft Dataverse.
- 🔹 Prerequisites: Power Platform environment linked to D365 F&O, tenant-level agentic authoring enabled in Power Platform admin center, an active GitHub.com identity, and app-level coauthoring toggled on.
- 🔹 Effort level: Medium. Requires admin configuration, solution framing, and iterative prompt design.
- 🔹 Outcome: Radically accelerated delivery of tailored F&O workspace apps with reduced formula errors and native governance.
How it works
Agentic canvas coauthoring merges real-time multi-user editing with autonomous AI execution via the Model Context Protocol (MCP). Under the hood, Power Apps Studio represents screens, nested layouts, and business logic as declarative code (specifically .pa.yaml files). When an AI coding agent joins your session, it does not merely suggest text completions; it operates as an authenticated coauthor within the collaborative canvas runtime, reading the Abstract Syntax Tree (AST) of your app and submitting real-time structural mutations directly into the shared state.
In traditional canvas authoring, multi-maker collaboration relied on basic copresence (where only one maker held write locks while others were relegated to read-only viewers) or manual coauthoring toggles with strict session limits. With agentic authoring, Microsoft has exposed the underlying canvas authoring MCP server both locally (via tools like GitHub Copilot CLI and Claude Code) and natively in Power Apps Studio. In this architecture, the agent discovers Dataverse tables, custom connectors, and D365 F&O virtual entities, validates formulas against schema constraints, and synchronizes changes across the coauthoring bus while human engineers retain override control.
| Authoring Model | Execution Boundary | Underlying Protocol | Max Coauthors | Best Suited For |
|---|---|---|---|---|
| In-Studio Agentic (Preview) | Browser / Power Apps Studio left rail | Native Web MCP & Studio Sync | Up to 10 sessions/tabs | Rapid UI scaffolding, formula fixes, and real-time F&O workspace app iteration |
| External Agent CLI (GA) | Local terminal / VS Code / Claude Code | Local MCP Server & .NET 10 SDK | Linked via coauthor session | Pro-dev automation, CI/CD code generation, and complex batch YAML mutations |
| Standard Canvas Copresence | Power Apps Studio single master editor | SignalR presence broker | 1 editor (others read-only) | Simple, single-maker changes without concurrent logic updates |
canvas-apps@power-platform-skills). The agent formulates changes as structured YAML, validates them against the app canvas model, and pushes changes without requiring an export/unpack cycle.Step-by-step solution
Deploying an agentic coauthored canvas app to extend D365 F&O requires coordinated configuration across tenant governance, Dataverse virtual entities, and Power Apps Studio settings.
1. Enable Agentic Authoring in Power Platform Admin Center
Sign in to the Power Platform admin center with System Administrator or Tenant Administrator permissions. Navigate to Settings > Tenant settings and locate the toggle for agentic authoring. Turn this feature on to expose the agentic authoring icon in the left-hand rail across all canvas studio sessions in your tenant.
2. Enable App-Level Coauthoring in Studio
Create a new blank canvas app or open an existing workspace component. Navigate to Settings > Updates > New, type coauthor into the search box, and switch the Coauthoring toggle to On. This overrides the default read-only copresence engine and permits simultaneous multi-session writes.
3. Expose D365 F&O Virtual Entities in Dataverse
Open your Power Apps maker portal at make.powerapps.com and navigate to Solutions. Ensure that the Finance and Operations Virtual Entity solution is installed and bound to your target F&O environment. Navigate to Tables > Filter: All, locate the required F&O business entities (such as mserp_purchpurchaseorderheaderv2entity and mserp_purchpurchaseorderlineentity), and ensure they are marked as Visible.
4. Connect the In-Studio Agent via GitHub
In Power Apps Studio, select the Agentic Authoring icon on the left rail. When prompted, select Sign in with GitHub and authenticate using your authorized GitHub.com account. Once authenticated, the agent scans your canvas app metadata, identifies active Dataverse connections, and stands ready to receive plain-language prompts.
5. (Optional) Configure Pro-Developer Local MCP Tooling
If your pro-dev team prefers working from a local IDE alongside the studio maker, confirm that the .NET 10 SDK or later is installed by executing dotnet --list-sdks. In your coding agent terminal (e.g., GitHub Copilot CLI), run:
/plugin marketplace add microsoft/power-platform-skills
/plugin install canvas-apps@power-platform-skills
/configure-canvas-mcp
Connect this MCP instance to the active app coauthoring session to enable concurrent edits from both the local terminal and the browser studio.
6. Scaffold Workspace Interfaces via Contextual Prompts
Instruct the agent in the Studio chat rail with precise architectural constraints. For instance: "Add a responsive container hosting an order header card bound to mserp_purchpurchaseorderheaderv2entity. Filter records where mserp_purchaseordernumber matches the input parameter EntityId, and display vendor account and currency code."
7. Review Proposed Plan and Commit Changes
Evaluate the plan generated by the agent before granting permission to write. The agent displays its intended YAML modifications and control additions. Agree to the plan; the agent commits the .pa.yaml tree updates directly to the canvas in real time, visible immediately in your designer pane.
8. Embed the Canvas App into the D365 F&O Workspace
Navigate to Dynamics 365 Finance and Operations. Open the target workspace (e.g., Procurement and sourcing > Workspaces > Purchase order processing). Select Options > Personalize > Add an app from Power Apps. Paste your Canvas App ID, select the appropriate display size, and bind the contextual parameter to the current grid's primary key (e.g., PurchTable.PurchId).
Worked example
At Contoso Machinery Mfg, buyers managing direct-material procurement must monitor purchase orders, review vendor exception flags, and expedite past-due delivery lines. Previously, navigating between the Purchase Order list page, line details, and external vendor correspondence required dozens of clicks per order. The architecture team decided to implement a high-density canvas app embedded directly inside the Purchase order processing workspace.
The solution architect configured a blank tablet-layout canvas app linked to D365 F&O virtual entities through Dataverse. By inviting the in-studio GitHub agent into the canvas session, the team avoided hours of manual control placement and responsive alignment.
The architect prompted the agent: "Create a two-column responsive screen named scr_POExpedite. The left column must contain a gallery displaying purchase order lines from mserp_purchpurchaseorderlineentity matching the context parameter Param('EntityId'). The right column must contain an editable form allowing updates to mserp_confirmeddeliverydate, plus a button that invokes a Power Automate flow with the PO number and line number."
The agent formulated and executed the following Power Fx formulas into the app tree, accurately handling Dataverse virtual entity schema conventions:
// App OnStart: Capture F&O Context passed via workspace personalization
Set(gblPurchId, Coalesce(Param("EntityId"), "PO-0001042"));
// Gallery Items property bound to F&O Virtual Entity
Filter(
mserp_purchpurchaseorderlineentities,
mserp_purchaseordernumber = gblPurchId
);
// OnSelect action for the Expedite Update Button
UpdateIf(
mserp_purchpurchaseorderlineentities,
mserp_purchaseordernumber = gblPurchId && mserp_linenumber = gal_POLines.Selected.mserp_linenumber,
{
mserp_confirmeddeliverydate: dt_NewDeliveryDate.Value,
mserp_deliverydatechangejustification: txt_Reason.Text
}
);
Notify("Delivery date updated in D365 SCM.", NotificationType.Success);
While the human developer styled the typography and corporate brand palette, the agent constructed the validation routines, error boundaries, and loading spinners. Within four hours, an enterprise-grade expediting tool was deployed and embedded into D365 F&O, reducing standard screen development time by 69%.
Automation and AI opportunities
Once your canvas app is operational within D365 F&O, several natural expansion paths enhance the architecture:
- Business Event Automation: Trigger Power Automate flows from F&O business events (such as
PurchOrderConfirmedBusinessEvent). The flow can update Dataverse staging tables that the canvas app monitors in real time. - Embedded Copilot Studio Agents: Embed a conversational Copilot Studio agent into an adjacent tab within the canvas app. The agent can query D365 F&O via the Dataverse MCP server to summarize line discrepancies without leaving the workspace.
- Proactive Telemetry via Azure Application Insights: Connect the canvas app to Application Insights to track agent-generated formula latency, delegation warnings, and user interaction patterns across multiple legal entities.
mserp_purchaseordernumber or mserp_dataareaid) to avoid client-side delegation penalties and performance throttling.Common pitfalls and troubleshooting
- Symptom: Additional developers or external agents receive a "Read-only mode" banner when opening the canvas app.
Cause: The session count has exceeded the 10-coauthor ceiling, or the app has not been updated with the Coauthoring toggle turned on.
Fix: Ensure all idle tabs are closed. Verify in Settings > Updates > New that Coauthoring is switched to On, then save and publish the app. - Symptom: Power Fx formula errors suddenly appear across all screens when a remote coauthor joins.
Cause: The app language is locked to the locale of the first maker who initiated the session. When a coauthor with a different locale joins (e.g., using comma vs. semicolon separators), formula compilation conflicts occur.
Fix: Standardize the regional language settings of the primary maker and agent execution profiles prior to editing. - Symptom: In-studio GitHub agent fails to inspect or add D365 F&O virtual entities.
Cause: The virtual entity metadata has not been refreshed or marked as visible in the Dataverse environment.
Fix: Open Advanced Settings > Administration > Virtual Entity Data Sources, openFinance and Operations, and re-generate the metadata for the required entities. - Symptom: Local MCP tool reports
Command 'dotnet' not foundor execution halts during plugin setup.
Cause: The machine is missing the.NET 10 SDKruntime prerequisite required by the canvas app authoring MCP server.
Fix: Download and install .NET 10 SDK or later, verify usingdotnet --list-sdks, and restart your coding agent terminal. - Symptom: The embedded canvas app fails to load context data when opened from the F&O workspace.
Cause: The F&O personalization parameter was not mapped, or the Power Fx logic does not parseParam("EntityId").
Fix: Ensure the F&O personalization settings map the specific form record ID to the app, and wrap theParam()call inside aCoalesce()statement to supply fallback test IDs during studio testing.
Best-practice checklist
- ✅ Toggle Coauthoring to On in App Settings before inviting team members or connecting agents.
- ✅ Enable the agentic authoring tenant setting in Power Platform admin center under managed governance policies.
- ✅ Lock app authoring sessions to a single consistent regional locale to prevent Power Fx punctuation syntax mismatches.
- ✅ Verify that .NET 10 SDK is installed across all developer workstations executing local MCP extensions.
- ✅ Maintain separate development and production Power Platform environments linked to dedicated F&O sandbox tiers.
- ✅ Review every proposed agent plan before agreeing to the changes to avoid overwriting human-curated layouts.
- ✅ Index Dataverse virtual entity keys and verify formula delegation warnings inside Power Apps App Checker.
FAQ
Can the agentic coauthor modify existing X++ business logic or alter F&O table schemas?
No. The canvas authoring agent operates strictly within the Power Apps canvas runtime and Dataverse metadata boundaries. It can interact with D365 F&O solely via exposed Dataverse virtual entities, custom APIs, or connectors. Any underlying X++ data entity changes or table extensions must still be authored in Visual Studio and deployed via standard F&O ALM pipelines.
Does using the in-studio GitHub agent consume Power Platform API requests or GitHub tokens?
Authentication relies on your GitHub.com identity to verify eligibility for the agentic authoring preview. While underlying code generation utilizes AI infrastructure, Dataverse queries and connector executions triggered during testing consume standard Power Platform request capacities allocated to your maker account.
What happens if a human maker and an agent edit the exact same control simultaneously?
Power Apps Studio allows multiple makers to select and modify controls simultaneously. However, if both an agent and a human maker post changes to the exact same property concurrently, the last write committed to the AST wins. To prevent unintended overwrites, coordinate task assignments such that the agent works on distinct screens, data containers, or formula sets.
Key takeaways
- 🎯 Agentic coauthoring introduces an autonomous AI developer directly into Power Apps Studio, bridging the gap between pro-dev CLI workflows and visual low-code authoring.
- 🎯 The underlying architecture relies on the Model Context Protocol (MCP) and declarative
.pa.yamlfile representations, enabling real-time syntax checking and AST updates. - 🎯 Integrating this capability with D365 F&O virtual entities drastically accelerates the construction of tailored, contextual workspace extensions while preserving enterprise security and governance.
Further reading
- Invite agentic coauthors to collaborate with you directly in canvas studio!
- Collaborate on canvas apps in Microsoft Power Apps Studio
- Create and edit canvas apps with AI code generation tools
- What is Microsoft Dataverse?
Note: written with AI assistance. Always validate in a sandbox environment before applying to production.
Comments
Post a Comment