Overview
Once Microsoft Dynamics 365 Business Central is connected, the Dema Agent can work with ERP records from one company in your Business Central online environment. It can answer questions about customers, items, sales orders, invoices, and other records exposed through Business Central APIs. Business Central exposes read-only tools by default. A Business Central administrator can create an MCP configuration to allow selected create, modify, delete, or business-process actions. The agent signs in as the person who connects the integration. It cannot access records or perform actions that person is not allowed to use in Business Central.Prerequisites
- A Business Central online environment.
- A Business Central user with access to the company and records the agent should use.
- Your Business Central environment name and company name. You can find your Microsoft Entra tenant ID using the steps below.
- A Microsoft Entra administrator to approve Dema’s Business Central permission the first time your tenant connects.
- For a custom MCP configuration, a Business Central administrator with the MCP - ADMIN permission set or equivalent permissions.
Choose the agent’s access
Read-only access
You do not need to create an MCP configuration for read-only access. Leave MCP configuration empty when you connect. The agent can read the standard Business Central API pages that the signed-in user can access.Selected read and write access
To choose which API pages and actions the agent can use:- In Business Central, search for and open Model Context Protocol (MCP) Server Configurations.
- Select New, give the configuration a recognizable name, and turn on Active.
- Add the API page objects the agent needs under Available Tools.
- Grant Allow Read where needed.
- To allow changes, turn on Unblock Edit Tools, then grant only the required Allow Create, Allow Modify, Allow Delete, and Allow Bound Actions permissions.
Collect the connection values
Enter these values in Dema:Find your Microsoft Entra tenant ID
The tenant ID is a GUID in a format such asaaaabbbb-0000-cccc-1111-dddd2222eeee. It is not your company name, Microsoft login email, or a domain such as example.onmicrosoft.com.
The quickest way to find it is in Business Central:
- Open the Help menu in the upper-right corner of Business Central.
- Select Help & Support.
- Copy the tenant ID shown on the page and paste it into the Microsoft Entra tenant ID field in Dema.
- Sign in with a work account from the same organization as your Business Central environment.
- Go to Entra ID → Overview → Properties.
- Scroll to Tenant ID and copy the GUID.
TenantId= is the tenant ID. Company and configuration names may include spaces and non-English characters; paste their original names into Dema.
Connect Business Central
1
Open the integration
In Dema, go to Agents → Settings → Integrations, find Microsoft Dynamics 365 Business Central, and click Connect.
2
Enter the connection values
Enter the Microsoft Entra tenant ID, environment, and company you collected above. Enter the MCP configuration name if you created one; otherwise leave it empty for the default read-only tools. Click Add.
3
Sign in and approve
Sign in with a Microsoft work account from the same Entra tenant. The account must have access to the selected Business Central environment and company.The first connection from your tenant may require a Microsoft Entra administrator to approve Dema’s Business Central permission.
You are returned to Dema with the integration marked as Active.
4
Check the connection
Ask the agent a read-only question, for example: “Which sales orders are still open?” If you enabled a write tool, test it with a low-risk record and confirm the proposed action before it runs.
Access Dema requests
This permission does not make every operation available automatically. The effective access is the intersection of:
- The tools and actions exposed by the selected Business Central MCP configuration.
- The signed-in user’s Business Central permissions.
- The tool permissions configured for the Dema agent.
Troubleshooting
Microsoft says administrator approval is required
Microsoft says administrator approval is required
A Microsoft Entra administrator must approve Dema’s Business Central permission for your tenant. After approval, return to Dema and reconnect.
The connection is Active, but the agent cannot find records
The connection is Active, but the agent cannot find records
Check that the tenant ID, environment, and company exactly match the intended Business Central environment. Also confirm that the account used to connect can open the records in Business Central.
The agent only has read tools
The agent only has read tools
Write tools require an active MCP configuration. In Business Central, confirm Unblock Edit Tools is on and the required create, modify, delete, or bound-action permissions are selected. Then confirm the exact configuration name is entered in Dema and that the signed-in user has the matching Business Central permissions.
The MCP configuration is not found
The MCP configuration is not found
Configuration names are specific to an environment and company. Check the spelling and capitalization against Advanced → Connection String in Business Central, and make sure the configuration is Active.
The agent connects to the wrong company
The agent connects to the wrong company
Click Reconnect on the integration card and replace the environment or company with the exact values from the intended Business Central connection string.

