Skip to main content

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.
  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

  1. Provide a name for your application (e.g., Demo BC API).
  2. Under Supported account types, select Accounts in this organizational directory only.
  3. In the Redirect URI field, select Web and enter the following URI:
    https://api.cm.com/marketplace/configuration/redirect-token
  4. 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

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

API Permissions list with Dynamics 365 Business Central

  1. Add the following permissions:
    • Delegated Permissions: API.ReadWrite.All, Automation.ReadWrite.All
    • Application Permissions: app_access
  2. 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

  1. 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

  1. 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

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

Business Central Admin Center environment name

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

Business Central search icon and Companies tab

  1. Click the Help & Support button (question mark icon) in the top-right corner.
  2. Under the Troubleshooting section, click Inspect pages and data.
  3. 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