Extend Copilot capabilities in finance and operations apps
AI supports both the development of finance and operations extensions and the people who use those extensions. Earlier in this module, you explored reporting and analytics. This unit builds on that foundation: you distinguish AI development tools, identify how Copilot connects to application logic, and choose an extensibility approach for an organization-specific scenario. You also examine how to use AI assistance for code, metadata changes, scripts, tests, and reviews while retaining responsibility for security and correctness.
Distinguish development assistance from application assistance
Start by asking who needs assistance: the developer building an extension, or the business user working with application data. The products share the Copilot name, but they serve different roles and can work together.
GitHub Copilot assists development in supported editors and other development experiences. You can ask it to explain code, create XML documentation, suggest completions and changes, draft configuration or scripts, generate tests, and identify possible defects. Its output is a proposal for you to review, not a deployed finance and operations extension. GitHub Copilot can be used as a first review for customizations based on your instructions.
Microsoft Copilot in finance and operations apps is the application experience where a business user requests assistance in natural language. For example, a user can ask an extension to calculate a customer balance. Copilot invokes the configured capability; it is not the coding assistant you use to implement that capability.
Microsoft Copilot Studio is a low-code environment for building and extending agents. You configure instructions, knowledge, tools, and workflows so an agent can respond to a business request. Low-code agent configuration does not remove the need for X++ development when the tool calls custom finance and operations business logic.
Choose the development environment and extension mechanism first, then use an assistant where it is supported. For X++ development, use Visual Studio as your integrated development environment (IDE), where GitHub Copilot is available. Confirm the capabilities available in your installed tools, and use the finance and operations build and deployment process to validate the result. GitHub Copilot does not replace that process.
Use AI assistance in your development workflow
Integrate AI into a normal development cycle rather than treating generated output as a finished solution. Give the assistant a focused task, relevant project context, and constraints, then inspect the proposed change before accepting it.
Understand existing code: Ask for an explanation of the current implementation and its inputs and outputs. Check the explanation against the code and product documentation before planning an extension.
Draft code and metadata changes: Use completions or chat to propose a small implementation or a change to source-controlled configuration. For example, ask for a proposed metadata change and an explanation of its dependencies. Check object names, references, and security settings in the appropriate finance and operations development tools; a generated edit does not prove that the model is valid.
Generate XML documentation: Create XML documentation for classes and methods explaining the code, input and output parameters, and other valid inline documentation for your X++ code.
Prepare scripts: Ask for help drafting a development or validation script, such as a script that checks expected project files. Review each command and its target environment, and test in a nonproduction environment before using the script against shared resources.
Generate tests and review changes: Ask for test cases that cover valid inputs, missing records, and denied access. Use code review assistance to identify possible defects, then verify the suggestions, run the relevant tests, and have a developer review the change. AI feedback supplements rather than replaces human review.
Connect the business experience: Use Copilot Studio to configure the agent and its supported tools. Test representative prompts and permissions as well as the underlying application code; a successful build alone does not establish that the agent selects the right action.
For example, ask: "Suggest test cases for a customer-balance operation that accepts an account identifier and returns a balance and currency. Include an unknown account and a caller without the required privilege. Do not change files." This prompt defines the expected behavior and asks for a reviewable proposal rather than an unrestricted change.
Use only organization-approved AI services and permitted project context. Do not put credentials, customer financial records, or restricted source material into prompts. You remain responsible for the accepted code, metadata, scripts, and agent behavior.
Understand Copilot architecture in finance and operations apps
Copilot for finance and operations apps is built on a flexible architecture that allows developers to extend its capabilities using familiar extensibility patterns. At a high level, the architecture includes:
Core architectural components
Finance and operations Copilot client: The in-app surface where users type prompts and receive AI-driven responses. The Copilot interface is embedded in the finance and operations client through the SysCopilotChatPanel form, which facilitates communication between the client and Copilot Studio.
Copilot orchestration service (Copilot Studio): The orchestration service that determines user intent and invokes relevant tools or plugins. Copilot Studio chains tools and plugins together to create end-to-end conversational experiences. When a user submits a prompt in the Copilot chat panel, Copilot Studio analyzes the prompt to determine intent, selects appropriate tools or plugins to invoke, retrieves data and runs workflows, generates natural language responses, and can orchestrate multi-step processes across tools. It supports multi-step orchestration and integration across Microsoft 365, Power Platform, and finance and operations apps, allowing tools to be reused across these platforms.
Business data access layer: Enforces role-based security, data policies, and application logic when Copilot retrieves or acts on finance and operations data. This ensures Copilot responses respect the same permissions and validations as standard user interactions.
End-to-end interaction flow
A user submits a prompt in the Copilot pane.
Copilot Studio interprets intent and determines which action, tool, or client plugin to invoke.
The system retrieves relevant data securely.
The model generates a response using the data and instructions from the plug-in.
The user receives an actionable, natural-language response.
This architecture enables Copilot to blend generative AI with application-specific context: something standard automation tools like workflows or business events cannot do alone.
AI tools and client plugins: Two approaches to extensibility
The following two extensibility approaches address different scenarios: headless AI tools and context-aware client plugins. Both can participate in an agent experience configured in Copilot Studio. Choose based on whether the operation needs the finance and operations client context, rather than assuming that low-code authoring means no application code.
AI tools for Copilot
AI tools expose operations that an agent can invoke without requiring an open finance and operations form. Depending on the implementation, a tool can use a connector, an API, or finance and operations business logic. For the finance and operations business-logic approach, you implement an operation in X++ and make it available to the agent through a supported integration.
Key characteristics:
Configured as tools in Copilot Studio; the implementation can include X++ business logic
Reusable in supported agent experiences, subject to the selected integration
Useful for calculations, data queries, and operations that do not require an open form
Requires X++ development when you expose custom finance and operations business logic
Limited awareness of finance and operations form context or UI state
Example use case: An AI tool that queries customer account balances can be invoked during a Teams conversation or from within finance and operations apps, providing consistent data access across platforms.
Tip
Use AI tools when you need cross-platform functionality or when the scenario doesn't require deep integration with finance and operations forms or workflows.
Trace an AI tool from X++ to Copilot Studio
The customer-balance tutorial illustrates the boundary between the tools. You define the calculation and its inputs and outputs in an X++ class, and secure it with the appropriate privilege. You then create a Dataverse custom API that invokes the class and add the API as a tool in a Copilot Studio agent. The business calculation stays in finance and operations; Copilot Studio makes it available through a conversation. A coding assistant can help draft supporting artifacts, but it does not replace these application and agent components.
Important
This documented custom-API route requires a unified developer environment, the required Copilot and virtual entity solutions, and the (Preview) Custom API Generation feature. AI tools using this business logic are documented as preview. Check the current prerequisites and preview terms before planning a production implementation. Tutorial: Create AI tools with finance and operations business logic provides the implementation steps; this unit focuses on choosing the approach.
Client plugins for Copilot
Client plugins are X++-based extensions that work specifically within finance and operations apps. They provide deeper integration with application forms, business logic, and workflows.
Key characteristics:
Built using X++ code
Finance and operations-specific
Can interact with forms and UI elements
Supports complex business logic
Leverages existing data contracts and classes
Architecture of client plugins
Client plugins consist of two components:
A plugin definition in Copilot Studio that understands user prompts and orchestrates execution
A method in X++ that runs the defined client code when invoked
Actions are defined as subclasses of SysCopilotChatAction. Input and output parameters are passed between Copilot Studio and the finance and operations client using data contracts, which define the structure of inputs and outputs. Developers can specify global, form-specific, or runtime actions based on the context.
Example use case: A client plugin that not only checks inventory levels but also creates a draft transfer order and displays it in the standard transfer order form for user review.
Important
Client plugin development requires the unified developer experience and finance and operations version 10.0.40 or later. The documented client plugin feature is preview. Client actions run in the finance and operations client context and are secured through their associated menu item permissions; validate the applicable prerequisites and preview terms before implementation.
Choosing between AI tools and client plugins
Use AI tools when:
You need cross-platform functionality
The scenario involves simple data queries
You want to leverage low-code development
No UI interaction is required
Use client plugins when:
You need deep finance and operations integration
The scenario requires form interaction or complex workflows
You need to leverage X++ business logic
User actions result in data modifications requiring the standard UI
Apply the tool choice to a business request
Suppose an accounts receivable clerk needs a calculated customer balance. Choose a headless AI tool when the calculation does not depend on an open form. Use the X++ and Dataverse route described earlier to expose that calculation, then configure the tool in Copilot Studio. If the requirement instead involves filling fields in the current finance and operations form, evaluate a client plugin. GitHub Copilot can assist with implementation and test drafts in a supported development experience, but it is not the runtime mechanism that retrieves the customer balance. In either case, verify access rights and the result returned to the user.
Copilot plug-ins for finance and operations apps summary and examples
Copilot plug-ins enable Copilot to retrieve domain-specific data and perform guided actions inside finance and operations apps. By exposing business logic through well-defined inputs and outputs, plug-ins allow Copilot to respond accurately and consistently to user prompts. What plug-ins do:
Retrieve domain-specific data (for example, open purchase orders above a threshold).
Trigger system actions (such as creating draft transactions).
Provide reasoning instructions so Copilot can produce structured, accurate answers.
Example use cases
A collections agent asks: "Which customers are overdue more than 60 days?" → A plug-in retrieves the overdue list and returns it in a formatted response.
A warehouse manager asks: "Show me items with negative on-hand inventory." → A plug-in runs the inventory query and generates insights.
Development and configuration considerations
Plug-ins must follow the security model of finance and operations apps.
Developers define inputs, outputs, and expected behaviors.
Testing requires validating the plug-in's reasoning instructions to ensure accurate outputs.
Plug-ins should be versioned and monitored to support ongoing updates.
Data contracts define the structure of inputs and outputs, enabling structured communication between Copilot Studio and the finance and operations client.
Design plug-ins to return structured data rather than free text whenever possible.
Plug-ins make Copilot extensible in a controlled, reliable way, ensuring that domain experts receive consistent, high-quality output.
Extend Copilot using the finance and operations extensibility framework
Beyond plug-ins, the finance and operations extensibility model provides a structured way to onboard new Copilot experiences.
Recognize the role of Model Context Protocol
Model Context Protocol (MCP) is an open standard through which an AI agent discovers and invokes tools exposed by a server. Think of it as a common interface between the agent and application capabilities, not as a coding assistant or a replacement for business logic. The Dynamics 365 ERP MCP server exposes data, form, and action tools for supported finance and operations scenarios. Requests use the authenticated identity and remain subject to application permissions and business validations.
MCP and a custom API are different integration choices. Current documentation also describes exposing eligible X++ actions through the ERP MCP server; the custom-API tutorial uses Dataverse and Copilot Studio objects instead. Do not assume that an MCP tool works in every Copilot surface: adding the Dynamics 365 ERP MCP server to the in-app finance and operations Copilot sidecar agent is not currently supported. Check the current environment and client requirements. Server setup and advanced orchestration are outside this unit.
Steps for extending Copilot
Define the business scenario: Identify the problem Copilot should help solve.
Identify data sources: Determine which tables, entities, or business events Copilot needs to access.
Configure intents and actions: Map user intents (for example, "Analyze vendor payments") to specific plug-in actions.
Create custom prompts or instructions: Provide guidance to the model to ensure accuracy.
Test and validate: Check for appropriate outputs, performance, and responsible AI compliance.
Best practices
Use least-privilege principles for data access.
Keep plug-in logic focused and predictable.
Embrace iterative testing: AI responses should be validated in real-world workflows.
Document extensibility points to support ongoing updates.
Extended Copilot experiences can also integrate with the Power Platform, enabling hybrid scenarios that span Power Automate, Dataverse, and additional Microsoft 365 tools.
Building custom scenarios through tool and plugin chaining
Custom scenarios allow you to design sophisticated Copilot experiences by chaining multiple tools and plugins together. For example, a production planning scenario might combine:
An AI tool that retrieves current inventory levels
A client plugin that calculates material requirements
Another plugin that generates a draft production order.
Copilot Studio manages the orchestration, determining which components to invoke and in what sequence based on the user's prompt. Test your chained scenarios thoroughly to ensure seamless integration and appropriate error handling.
Enable generative orchestration for advanced scenarios
Generative orchestration enhances Copilot's ability to handle complex, multi-step workflows by dynamically chaining tools and plugins together based on user prompts. Generative orchestration is supported for Copilot for finance and operations apps agents and must be explicitly enabled per agent in Copilot Studio.
What generative orchestration enables:
Breaking down complex requests into multiple sub-tasks
Invoking multiple plugins in sequence to complete a workflow
Adapting responses based on intermediate results
Creating flexible conversational experiences
When to use generative orchestration:
Generative orchestration is particularly valuable for scenarios where:
Users might ask open-ended questions requiring data from multiple sources
Workflows span different business processes or data domains
The sequence of operations depends on intermediate results
Note
Generative orchestration is supported for the Copilot for finance and operations apps agent but isn't enabled by default. You can enable it in Copilot Studio if your extensions require this functionality.
To enable generative orchestration:
Navigate to Copilot Studio
Open your Copilot for finance and operations apps agent
Access the agent settings
Enable the generative orchestration feature
Example scenario:
A user asks: "Show me customers with overdue balances and create a collections action plan." Generative orchestration allows Copilot to:
Query overdue customer data (first plugin)
Analyze payment patterns (second plugin)
Generate recommended actions (AI processing)
Format the response with actionable next steps
This creates a seamless experience without requiring the user to break down the request into separate prompts.
Glossary
AI tool: An operation an agent invokes through a supported integration. Finance and operations AI tools can expose X++ business logic without requiring an open application form.
GitHub Copilot: An AI development assistant that proposes code, configuration, tests, and related changes in supported development experiences.
Microsoft Copilot Studio: A low-code environment for configuring agents, their instructions, and the tools they invoke.
Business events: Mechanism for publishing application events to external systems; used for data-driven Copilot interactions.
Client plugin: An X++-based extension specific to finance and operations apps that provides deep integration with application forms and workflows.
Copilot: Generative AI capability embedded in finance and operations apps that provides natural-language assistance and insights.
Data contracts: Structures that define the inputs and outputs passed between Copilot Studio and finance and operations client plugins.
Finance and operations Copilot client: The in-application interface where users interact with Copilot.
Orchestration service (Copilot Studio): The service that processes prompts, identifies intents, chains tools and plugins, and manages conversational flow across the Copilot ecosystem.
Prompt engineering (Dynamics context): Designing instructions, inputs, or patterns to guide Copilot in producing accurate responses.
SysCopilotChatAction: The X++ base class used to define client plugin actions that can be invoked through Copilot prompts.
Unified developer experience: The modern development environment for finance and operations apps required for client plugin development (version 10.0.40+).
Model Context Protocol (MCP): An open standard that lets agents discover and invoke server-exposed tools. It does not replace application authorization or business validations.
Reference links
- Copilot client plugins
- Extend Copilot
- Copilot for finance and operations
- Copilot architecture
- Create AI plugins for copilots with finance and operations business logic (preview)
- Use Model Context Protocol for finance and operations apps
- Choose development tools for your plugin
- AI-assisted development in Visual Studio
- Get started with GitHub Copilot completions
- Customize chat responses and set context
- Tutorial: Create AI tools with finance and operations business logic
- Security for Dynamics 365 ERP MCP
