How to connect an AI agent to Dynamics 365 Business Central
Connect Business Central to Portal, then add Portal's MCP address in Claude, ChatGPT or Cursor and sign in. The assistant answers from Business Central data synced into Portal, and anything it changes, like a Business Central sales order, waits for your confirm.
About Dynamics 365 Business Central.
Microsoft Dynamics 365 Business Central is a business management system for small and mid-sized companies, covering finance, manufacturing, sales, shipping, projects and service. Microsoft describes its sweet spot as wholesale and professional services. It is the successor to Dynamics NAV, also known as Navision.
It runs online as a Microsoft-hosted service, with two major releases every April and October, or on-premises on your own Business Central Server and SQL Server. Licenses are sold through Microsoft partners as Essentials, Premium and Team Member seats.
On-premises versions follow Microsoft's Modern Lifecycle Policy and are supported only while you keep current; for example, version 26 support ends on October 14, 2026.
Portal by Webisoft is a B2B portal for Dynamics 365 Business Central: customer self-service and team apps on live Business Central data.
Why connecting to Business Central is hard.
An assistant calling Business Central directly runs into the same per-user request limits as every other integration. Portal answers from synced data and calls Business Central only for confirmed changes.
Per-user API limits
Business Central online limits each user to 5 concurrent OData requests and 6,000 requests in any 5-minute window, and pages are capped at 20,000 records. Service principals get the same limits, and Microsoft's own advice for heavy integrations is to rotate requests across several users or service principals.
The standard API is fixed
The standard API v2.0 cannot be extended with extra fields. If you need one, Microsoft says to copy the AL code and build a custom API as an extension, which then has to survive every release wave.
Old integration methods are being removed
Online only accepts OAuth 2.0; web service access keys stopped working on October 1, 2022, and the password OAuth flow was removed in version 23. Exposing Microsoft pages as SOAP endpoints ends in version 29 and as OData endpoints in version 30, so older NAV-era integrations keep breaking.
Online and on-premises connect differently
On-premises deployments cannot be reached through Microsoft's common online endpoint; you connect to your own server directly, and service-to-service sign-in there needs Microsoft Entra configured with OpenID Connect.
Your options.
| Option | Fits when | Watch out for |
|---|---|---|
| Native Business Central add-ons | You need one narrow function and an add-on covers it. | Each add-on is its own product to license, learn and upgrade. |
| Generic integration platform | You have someone in-house to build and maintain the flows. | You still build the screens, the AI layer and the Business Central write rules yourself. |
| Custom code | The need is unique and you have developers who know Business Central. | Upgrades and staff changes put the integration at risk. |
| Portal by Webisoft | You want customers, your team and AI agents working on live Business Central data. | It works on top of Business Central; it does not replace it. |
How Portal reaches Business Central.
For Business Central online, Portal uses the standard API v2.0 with Microsoft Entra service-to-service sign-in. Your administrator clicks Connect with Microsoft to grant consent, then adds the app on the Microsoft Entra Applications page in Business Central with the D365 BUS FULL ACCESS permission set. Companies that prefer their own Entra app can enter its client ID and secret instead.
For Business Central on-premises, Portal connects to your server's API with a user name and web service access key, either directly or through the On-site connector relay, which calls the server inside your network over outbound connections only. The server needs OData and API services enabled. Orders carry a portal reference comment so a retry never creates a duplicate.
What you need.
- A Microsoft Entra admin to grant consent, or your own Entra app with a client ID and secret
- A Business Central user who can add Microsoft Entra applications
- An admin in Portal to turn on AI tools under Setup, MCP
Step by step.
Your Portal team sets up the Business Central connection with you during onboarding, so the first step is done together. The rest is yours to change any time.
Grant consent and add the app in Business Central
Under Setup, ERP, ERP system, choose Business Central and click Connect with Microsoft so a Microsoft Entra admin can grant consent. Then in Business Central, open Microsoft Entra Applications, add the Portal app and give it the D365 BUS FULL ACCESS permission set. Back in Portal, pick the environment and company and choose Test connection. For Business Central on-premises, enter the server address, a user name and a web service access key instead.
Turn on AI tools
Under Setup, MCP, tick Allow AI tools for internal users, customer users or both, and choose which tools are offered. Customer, item and price data come from the Business Central customer, with blocked customers treated as on hold and Business Central item unit prices.
Decide on changes
Leave Allow actions that change data off for a read-only assistant. Turn it on and a request such as placing an order returns a preview; once confirmed, it becomes a Business Central sales order, kept from duplicating by a portal reference comment line on each order.
Add Portal to your AI app
Copy the address from the MCP page, or from Connect an AI tool on the customer site, and add it as a connector or custom integration in Claude, ChatGPT or Cursor. Sign in on the Portal page that opens and choose Allow.
What syncs with Business Central.
| Record | Read | Write back | Note |
|---|---|---|---|
| Customers and contacts | Yes | No | Blocked customers treated as on hold |
| Addresses | Yes | No | Bill-to only; the standard API has no ship-to |
| Items and unit prices | Yes | No | The standard API has no price lists |
| Inventory | Yes | No | Total per item, not per location |
| Sales quotes | Yes | Yes | Converted with Make Order on acceptance |
| Sales orders | Yes | Yes | |
| Posted sales invoices | Yes | No | |
| Customer payments | No | Yes | Written to a cash receipt journal and posted |
| Posted sales shipments | Yes | No | No carrier tracking in the standard API |
| Purchase orders | Yes | Yes | Update receipt dates and quantities |
| Attachments | No | Yes | On customers, orders, quotes and invoices |
What you can do next.
- Which Business Central sales quotes for this customer are still open?
- Draft a sales order in Business Central for these lines and show me the preview.
- Which posted sales shipments went out to this customer this month?
Business Central questions, answered.
Does it work with Business Central online and on-premises?
Yes. Online uses Microsoft Entra service-to-service sign-in. On-premises uses a web service access key, directly or through the On-site connector relay; Windows authentication and multitenant on-premises servers are not supported.
Does the assistant log in to Business Central?
No. It signs in to Portal as the person using it, and Portal holds the single Business Central connection.
Can it see every Business Central record?
It sees what the signed-in user may see in Portal: a customer user sees their own account, and staff see what their role allows.
Keep going.
- Connect an AI agent to your ERP: overview
- B2B portal for Dynamics 365 Business Central
- Automate order entry from email, Dynamics 365 Business Central
- Take invoice payments online, Dynamics 365 Business Central
- Give customers order status, Dynamics 365 Business Central
- Build a B2B ordering portal, Dynamics 365 Business Central
- Quotes customers accept online, Dynamics 365 Business Central
- Triage a shared inbox, Dynamics 365 Business Central
- Add approval workflows, Dynamics 365 Business Central
- One REST API for your ERP, Dynamics 365 Business Central
- Connect an on-prem ERP safely, Dynamics 365 Business Central
- Connect an AI agent to your ERP, Dynamics 365 Finance & Operations
- Connect an AI agent to your ERP, Microsoft Dynamics GP