> ## Documentation Index
> Fetch the complete documentation index at: https://control-dev.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Prepare Microsoft Dynamics 365 Business Central access

> Prepare your Microsoft administrators, company details, and read permissions for a Control connection.

Prepare access to the posted general ledger, chart of accounts, and dimensions in your Business Central online company.
Your Microsoft Entra administrator and Business Central administrator or implementation partner may need to work together.

> [!NOTE]
>
> This is an assisted pilot connection. Contact Control before making access changes. Control verifies company ownership
> and reconciles an agreed financial period before enabling automatic sync. Completing these steps does not start a
> sync. Availability is enabled separately for your workspace.

## What to provide

| Detail | Where to find it or who provides it |
| - | - |
| Microsoft Entra directory ID | Your Microsoft administrator can find the **Tenant ID** in the Microsoft Entra admin center. |
| Business Central environment name | Ask your Business Central administrator for the exact environment name and whether it is a sandbox or production environment. |
| Company ID and company name | Ask your administrator for the company's API GUID and name. A display name alone does not uniquely identify a company. |
| Accounting currency | Confirm the company's local accounting currency and the currency of the matching entity in Control. |
| Company scope | List each company that Control should read. Each selected company is connected to the corresponding entity in Control. |
| Pilot accounting period | Choose a complete, closed period and supply the matching trial balance or general-ledger report through your agreed secure channel. Include its date and account filters. |
| Administrator contacts | Identify the people who can approve Microsoft Entra access and configure Business Central permissions. |

Business Central online is the initial scope. Tell Control if you use an on-premises installation, a national cloud,
or custom APIs before starting this procedure.

## How authorization works

Control supplies the **Application (client) ID** for its Business Central application. Your administrator authorizes
that application in your Microsoft directory and enables it inside Business Central. Control keeps its own application
credential on its servers; you do not create or send Control a client secret, administrator password, or access token.

The authorization is specific to your organization. Approval in Control's own Microsoft directory does not grant
access to your company. You can revoke the authorization later.

## Authorize the Control application

**1. Confirm the application identity**

Obtain the Business Central application ID from your Control onboarding contact. Confirm that you are using the
Business Central registration; the Dynamics 365 Finance registration is separate.

**2. Approve application access in Microsoft Entra**

Ask your authorized Microsoft Entra administrator to approve **Dynamics 365 Business Central → API.ReadWrite.All**
for the supplied application in your organization's directory, using the onboarding instructions supplied by Control.

This is the API permission used for background access. Its name includes write access; the permission sets assigned
in Business Central must restrict the application to the reads needed for this connection. Control's pilot reader
uses read operations. Automation and administration-center permissions are not needed for this ledger scope.

**3. Enable the application inside Business Central**

In the intended environment, search for **Microsoft Entra applications**. Create a record using the supplied
**Client ID**, give it a recognizable **Description**, and set **State** to **Enabled**.

**4. Assign read permissions to the selected companies**

Ask your Business Central administrator or partner to assign a dedicated permission set for the selected companies.
It must allow reading company information, accounts, posted G/L entries, dimensions, dimension values, and the
dimensions assigned to G/L entries, including the API objects needed to read them.

Do not grant **SUPER** or broad posting, setup, or automation rights. Company selection in Control is not a substitute
for restricting the application's permissions in Business Central.

**5. Confirm the pilot scope with Control**

Send the non-secret connection details above through your agreed onboarding channel. Confirm the selected companies
and accounting period before Control performs the first bounded read.

## Verify the pilot

With your Control onboarding contact:

1. Confirm that the returned company ID, name, and accounting currency match the intended company.
2. Check that accounts, posted ledger entries, and entry dimensions can all be read. Successful sign-in alone is insufficient.
3. Compare the selected period's debit, credit, and net balances by account against the same Business Central report.
4. Compare dimension totals and inspect representative corrections or reversals.
5. Confirm the agreed access restrictions before enabling ongoing imports.

The initial reader uses local-accounting-currency G/L amounts. It does not treat additional reporting-currency amounts
as transaction-currency amounts. Closing entries, historical opening balances, custom fields, and any additional
currency requirements must be checked during the pilot. Invoice documents and write-back are outside the initial scope.

## Revoke access

Disable the application in **Microsoft Entra applications** in Business Central. Your Microsoft Entra administrator can
also remove the application's consent or enterprise application from your directory. Tell Control to stop the connection.
Revoking access does not remove data that has already been imported into Control; arrange any retention or deletion
request separately with your Control contact.

## Troubleshooting

| Problem | What to check |
| - | - |
| Microsoft refuses authorization | Confirm the correct organizational directory, administrator role, application ID, and your organization's application-consent policy. |
| Authentication works but data access is forbidden | Confirm that the application is enabled in the correct Business Central environment and has the required object and company permissions. |
| Wrong company or missing companies | Check the exact environment name, company GUID, and the application's company restrictions. |
| Currency does not match | Check the company's local accounting currency and the corresponding entity currency in Control before importing data. |
| Ledger amounts do not match the report | Compare the same accounting dates, accounts, dimensions, closing entries, and currency basis with your Control contact. |

## Microsoft references

* [Set up Business Central service-to-service authentication](https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/automation-apis-using-s2s-authentication)
* [Business Central general-ledger entry fields](https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_generalledgerentry)
* [Business Central application-account licensing and authorization](https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/webservices/authenticate-web-services-using-oauth)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.