---
title: "Customer Setup Business Central"
description: "This guide explains what you, as the customer, need to provide to enable the integration between your Microsoft Dynamics 365 Business Central CRM and our pla"
canonical: "https://docs.cm.com/marketplace/crm-integrations/ms-dynamics-business-central-crm/customer-setup-business-central"
---

# Customer Setup Business Central

> This guide explains what you, as the customer, need to provide to enable the integration between your Microsoft Dynamics 365 Business Central CRM and our pla

Source: https://docs.cm.com/marketplace/crm-integrations/ms-dynamics-business-central-crm/customer-setup-business-central

This guide explains what you, as the customer, need to provide to enable the integration between your Microsoft Dynamics 365 Business Central CRM and our platform.

---

## 1. Prerequisites

Before proceeding, ensure you have the following:

- Admin access to your Microsoft Dynamics 365 Business Central account.
- Admin access to the Microsoft Entra ID (Azure Active Directory) portal.

---

## 2. Create an Azure App Registration

To enable the integration, you need to create an Azure App Registration. Follow these steps:

### Steps to Create an Azure App Registration

1. Open your web browser and go to the [Microsoft Entra ID Center](https://entra.microsoft.com).
2. Sign in with your credentials (the same credentials you use for accessing Business Central).
3. In the left-hand menu, select **App registrations** and click on **New registration**.

\[Azure App registrations menu with New registration button]

4. Provide a name for your application (e.g., `Demo BC API`).
5. Under **Supported account types**, select **Accounts in this organizational directory only**.
6. In the **Redirect URI** field, select **Web** and enter the following URI:\
   [https://api.cm.com/marketplace/configuration/redirect-token](https://api.cm.com/marketplace/configuration/redirect-token)
7. Click **Register** to finalize the registration.

\[Azure App registration overview after registration]

---

## 3. Configure API Permissions

### Steps to Add API Permissions

1. Navigate to 'Certificates & secrets' in the central menu. Click on the 'New client secret' button, and provide a description along with an expiry date (maximum 24 months). Finally, click 'Add' to finish the process.

\[Certificates & secrets menu entry]

\[New client secret button and description dialog]

2. In the Azure App Registration, navigate to **API Permissions** in the left-hand menu.
3. Click on **Add a permission**.
4. Select **Dynamics 365 Business Central** from the list.

\[API Permissions list with Dynamics 365 Business Central]

5. Add the following permissions:
   - **Delegated Permissions**: `API.ReadWrite.All`, `Automation.ReadWrite.All`
   - **Application Permissions**: `app_access`
6. Grant admin consent for the permissions.

\[Admin consent confirmation for API permissions]

---

## 4. Generate Client Secret

### Steps to Generate Client Secret

1. In the Azure App Registration, navigate to **Certificates & Secrets** in the left-hand menu.
2. Click on **New client secret**.
3. Provide a description (e.g., `Marketplace Integration`) and set an expiry date (maximum 24 months).
4. Click **Add** and copy the **Client Secret** value. Save it securely, as it will not be displayed again.

---

## 5. Retrieve Required Credentials

### Steps to Gather Credentials

1. Navigate to the **Overview** section of the Azure App Registration.
2. Copy the following values:
   - **Application (client) ID**: This is your `clientId`.
   - **Directory (tenant) ID**: This is your `tenantId`.

\[Azure App Registration overview with client ID and tenant ID]

3. Go to Certificates & Secrets and Create New Client Secret Copy and Save its Value by giving proper Description and Expires Duration

\[Certificates & secrets page after creating a new client secret]

4. Save these values securely.

---

## 6. Retrieve Company ID and Environment Name

### Steps to Retrieve Company ID and Environment Name

1. Log in to your **Business Central** account using the same credentials as Azure.

\[Business Central sign-in screen]

2. Navigate to the **Admin Center** and check your environment. If no environment exists, create a new one and name it appropriately.
3. Copy the **Environment Name**.

\[Business Central Admin Center environment name]

4. In the Business Central homepage, click on the **Search** icon and open the **Companies** tab.

\[Business Central search icon and Companies tab]

5. Click the **Help & Support** button (question mark icon) in the top-right corner.
6. Under the **Troubleshooting** section, click **Inspect pages and data**.
7. In the inspector, search for Id. The first result contains your **Company ID**. Copy and save it securely.

---

## 7. Share Details with the Delivery Team

Once you have the following details, share them with the delivery team:

- **tenantId**
- **clientId**
- **clientSecret**
- **companyId**
- **Environment Name**
