Microsoft Dynamics 365 Business Central
Business Central API Integration Guide
This guide provides step-by-step instructions for integrating Microsoft Business Central APIs with your Iconnek SYNC platform using Microsoft Entra ID (formerly Azure AD) App Registration.
Table of Contents
- Prerequisites
- Step 1: Create an App Registration in Microsoft Entra ID
- Step 2: Configure API Permissions
- Step 3: Create Client Secret
- Step 4: Register the Application in Business Central
- Step 5: Establish the connection with iconnek.io
- Troubleshooting
Prerequisites
Before starting this integration, ensure you have:
- Administrator access to Microsoft Entra ID (Azure AD)
- Administrator access to Business Central
- Your Business Central environment URL
- A Business Central user with SUPER permissions
Step 1: Create an App Registration in Microsoft Entra ID
- Sign in to the Microsoft Entra admin center
- Navigate to App registrations in the left menu
- Click + New registration
- Enter application details:
- Name: iconnek.io Business Central Connector
- Supported account types: Select "Accounts in this organizational directory only"
- Redirect URI:
https://businesscentral.dynamics.com/OAuthLanding.htm
- Click Register
- Once registered, make note of:
- Application (client) ID
- Directory (tenant) ID
These values will be needed for your integration configuration.
Step 2: Configure API Permissions
- In your App registration, select API permissions from the left menu
- Click + Add a permission
- Select Dynamics 365 Business Central under Microsoft APIs
- If you don't see it, search for "Business Central"
- Select Application permissions (for service-to-service communication without user context)
- Check the following permissions:
- API.ReadWrite.All (for full programmatic access)
- Automation.ReadWrite.All (for workflow automation)
- Or select specific permissions based on your requirements
- Click Add permissions
- Click Grant admin consent for [Your Organization] to pre-authorize these permissions
- This step is crucial for Application permissions as they require admin consent before they can be used
Step 3: Create Client Secret
- In your App registration, select Certificates & secrets from the left menu
- Under Client secrets, click + New client secret
- Enter a description (e.g., "iconnek.io Integration Secret")
- Select an expiration period (recommended: 12 months for regular rotation)
- Click Add
- IMPORTANT: Copy and securely store the client secret value immediately. It will not be visible again after you leave this page.
Step 4: Register the Application in Business Central
- Sign in to Business Central with admin credentials
- Search for Microsoft Entra Applications page using the search icon (🔍)
- Click New to create a new application registration
- Enter the Client ID (Application ID) from your Entra ID App registration
- Enter a meaningful description (e.g., "iconnek.io Integration")
- Set the State to Enabled
- Set up the
D365 BASICandD365 BUS FULL ACCESSpermission for the user group. Refer to the MC Dynamics 365 Business Central documentation to assign permissions. - Save the registration
Step 5: Establish the connection with iconnek.io
- Create a new configuration in iconnek.io for Business Central
- Configure the connector with:
- Client ID: From App registration
- Client Secret: From App registration
- Tenant ID: Your Microsoft Entra ID tenant
- Environment: Your environment name (e.g., "Production", "Sandbox")
- Establish the connection
Troubleshooting
Common Issues and Solutions
- Authentication Failed
- Verify client ID and secret are correct
- Check that permissions have been granted admin consent
- Ensure the application is properly registered in Business Central
- API Access Denied
- Verify the user has appropriate permissions in Business Central
- Ensure the user has access to the company you're trying to access
- Redirect URI Mismatch
- Make sure the redirect URI in the authentication request exactly matches one configured in the app registration
- Business Central Specific Errors
- Check Business Central telemetry for detailed error messages
- Review application event logs
