Skip to main content

Microsoft Dynamics 365 Business Central Connections and Settings

How to connect Microsoft Dynamics 365 Business Central to iPaaS.com: Entra app registration, OAuth 2.0 credentials, subscription settings, and authentication.

Integrate iPaaS.com with Microsoft Dynamics 365 Business Central to synchronize customers, companies, contacts, customer categories, products and inventory, product categories, locations, shipping methods, sales orders, and posted invoices between the two systems.

This article is the ongoing connection reference for the integration. It describes what each credential and setting does, how authentication works, and how to maintain the connection after the initial setup, for example when rotating credentials or changing environments. For the first-time setup walkthrough, subscribers or their MiSP should follow the Installation Instructions.

How to Connect

Prerequisites

Before setting up the Microsoft Dynamics 365 Business Central integration in iPaaS.com, ensure you have the following:

  • A Microsoft Dynamics 365 Business Central account with administrator access.

  • Access to the Microsoft Entra Admin Center to register an application.

  • The following values from the registered application:

    • Tenant Id

    • Client Id

    • Client Secret

    • Scope

How to Create an Application for the iPaaS.com Integration

To set up authentication, an application must be created in the Microsoft Entra Admin Center. Follow these steps:

  1. Log in with your Microsoft administrator account.

  2. Go to Applications → App Registrations.

  3. Click New Registration.

  4. Provide a display name for the application.

  5. Select the appropriate option to determine who can use the application.

  6. Provide a Redirect URI (optional). Use the following URI for returning authentication responses: https://portal.ipaas.com/customer/subscription-mgmt/subscriptions/authorization/app

Steps to Generate Client Credentials

  1. Open the Certificates & Secrets tab.

    Certificates & Secrets tab in the Microsoft Entra Admin Center
  2. Click New Client Secret.

    New Client Secret button
  3. Add a description and set the expiration period for the client secret.

    Client secret description and expiration
  4. Click Add to generate the client secret. Copy and store the value securely, as it is shown only once.

Steps to Add Permissions for Business Central

To grant the permissions the integration needs:

  1. Navigate to API Permissions for your application and click Add a Permission.

    API Permissions, Add a Permission
  2. In the Request API Permissions dialog, select Dynamics 365 Business Central. This grants access to Business Central data and functionality.

    Request API Permissions, select Dynamics 365 Business Central
  3. Assign the desired Application Permissions to the application. For example, select an application permission such as the read/write permission for full API access.

    Assign Application Permissions
  4. Review the permissions added under API Permissions, and verify that all required permissions are present and correctly assigned.

    Review configured API Permissions

    Permissions summary

Enable Web Services in Business Central

The integration reads from several Business Central web services. In Business Central, search for Web Services, then add and publish each of the services below:

  1. Search for Web Services and open the page.

  2. Select New to add a web service.

  3. Choose the appropriate Object Type and Object ID.

  4. Enter the Service Name.

  5. Select Publish.

  6. Repeat for each service in the table below.

Name

Object Type

Object ID

Service Name

Customer Card

Page

21

CustomerCard

Location Card

Page

5703

Locations

Item Card

Page

30

ItemCard

Shipping Agents

Page

428

ShippingAgents

Sales Order

Page

42

SalesOrders

Sales Order Lines

Page

46

SalesOrderLines

Items By Location

Query

2554

Itemsbylocation

Customer Price Groups

Page

7

CustomerPriceGroups

Configure Subscription Settings

The fields below configure your Microsoft Dynamics 365 Business Central subscription in iPaaS.com. The first group establishes the connection and authentication; the second group tunes optional integration behavior. Subscribers or their MiSP enter these values on the subscription settings page.

Subscription settings page in iPaaS.com

Connection and Authentication Settings

Field

Description

Required

Example

API Url

The base API address for Microsoft Dynamics 365 Business Central.

Yes

Environment

The Business Central environment that the integration connects to, such as a sandbox or production environment.

Yes

Production

Company Name

The name of your company in Business Central. Requests are scoped to this company, so it must match the company that holds the records you want to synchronize.

Yes

YourCompany

Tenant Id

The directory (tenant) Id from the application registration.

Yes

Your tenant Id

Client Id

The application (client) Id from the application registration.

Yes

Your client Id

Client Secret

The secret value generated for the application. Store it securely, as it is shown only once.

Yes

Your client secret

Scope

The permission scope requested for the Business Central API.

Yes

Grant Type

The OAuth 2.0 grant the integration uses to obtain a token. Must be set to client_credentials.

Yes

client_credentials

The subscription also has a Name that identifies it within iPaaS.com (for example, Dynamics365_Integration). This is the general subscription label and is not a Business Central credential.

Optional Behavior Settings

These settings adjust how specific data flows behave. Each one is optional; when left blank, the integration applies the default shown.

Field

Description

Required

Default

Transaction Poll Search Days

How many days back the scheduled sales order poll looks for recently modified orders, invoices, and shipments. Increase it to widen the lookback window.

No

5 days

Concurrent Batch Executions

How many requests the integration runs at the same time when processing data in batches. Lower it to reduce load on the Business Central API; raise it to process larger volumes faster.

No

10

Enable Company Hierarchy (TRUE/FALSE)

When set to TRUE, the integration includes parent and child company relationships when transferring companies to iPaaS.com.

No

FALSE (off)

PROCESS COMPANY RELATIONSHIP (TRUE/FALSE)

When set to TRUE, the integration includes contact relationships when transferring companies to iPaaS.com.

No

FALSE (off)

Contacts Endpoint

The Business Central endpoint used to read contact records for company relationships. Leave blank to use the standard contacts endpoint; set it only if your environment exposes contacts under a different web service name.

No

contacts

Transfer Customer Price Groups

When set to TRUE, the integration transfers customer price group pricing along with products.

No

FALSE (off)

Sales Codes For Customer Price Groups

The sales codes used when transferring customer price group pricing. Applies only when Transfer Customer Price Groups is enabled.

No

None

Sales Price Field Separator

The character that separates fields within a customer price group price record. Applies only when Transfer Customer Price Groups is enabled.

No

None

Sales Price Record Delimiter

The character that separates one customer price group price record from the next. Applies only when Transfer Customer Price Groups is enabled.

No

None

Exclude Expired Rules

When set, the integration omits expired customer price group pricing rules. Applies only when Transfer Customer Price Groups is enabled.

No

None

EXCLUDED LINEITEM SKUs FROM PREPROCESSING

A list of SKUs to skip during sales order line preprocessing. Leave blank to process all line items.

No

None

Processing Company Creation In Prerequisite

When set to TRUE, allows a missing company to be created as a prerequisite during transfer rather than causing the transfer to wait.

No

FALSE (off)

Update Non-Existing Invoice Lines

When set to TRUE, the integration adds invoice lines that are present in the iPaaS.com record but not yet on the Business Central invoice when posting invoices from iPaaS.com.

No

FALSE (off)

How to Populate the Connection Settings

Follow these instructions to locate each value and populate the subscription fields in iPaaS.com:

  1. API Url: The base API address for Microsoft Dynamics 365 Business Central is https://api.businesscentral.dynamics.com.

    Locating the API base address
  2. Environment: The environment (for example, a sandbox or production environment) is configured in Business Central. To locate it, go to Settings → Admin Center in Business Central.

    Business Central Admin Center
  3. Navigate to Operations to view and select the environment.

    Selecting the environment under Operations
  4. Grant Type: Must be set to client_credentials in all configurations.

  5. Client Id:

    1. Log in to the Microsoft Entra Admin Center.

    2. Go to App Registrations.

    3. Locate the application you registered and copy the Application (client) Id.

    Copying the Application (client) Id
  6. Client Secret: Generate a client secret in the Microsoft Entra Admin Center:

    1. Open your application in App Registrations.

    2. Click Certificates & Secrets.

    3. Create a New Client Secret. Save it securely, as it is shown only once.

    Generating a new client secret
  7. Scope: Set to https://api.businesscentral.dynamics.com/.default. The scope value is the resource identifier of the resource being requested, suffixed with .default, which requests the resource service generically without naming individual permissions.

  8. Tenant Id:

    1. Navigate to App Registrations in the Microsoft Entra Admin Center.

    2. Copy the Tenant Id from the Overview page.

    Copying the Tenant Id
  9. Company Name: The name of your company in Business Central is required. To locate it, go to Settings → My Settings in Business Central and check the Company Name field.

    Locating the Company Name in My Settings

    Company Name field

External and Internal IDs

When transferring data between Microsoft Dynamics 365 Business Central and iPaaS.com, External IDs and Internal IDs identify each record so updates land on the right record rather than creating duplicates.

Transferring Data from Microsoft Dynamics 365 Business Central to iPaaS.com

To transfer data from Microsoft Dynamics 365 Business Central to iPaaS.com, you need the External ID of the Business Central record. The following data types are supported:

  1. Company and Customer

  2. Sales Order

  3. Product

  4. Location

  5. Shipping Method

Company and Customer

  1. Navigate to Microsoft Dynamics 365 Business Central → Sales → Customers.

    Business Central Customers list
  2. Open the customer you want to transfer.

  3. Use the Customer No as the External ID.

    1. If the customer type is Company, it is added as a company in iPaaS.com.

    2. If the customer type is Person, it is added as a customer in iPaaS.com.

    Customer No on the customer card
  4. In iPaaS.com, open a manual submission via Integration Monitoring → Manual Sync and complete the fields:

    Manual Sync submission form

Field

Data

System

Microsoft Dynamics 365 Business Central

Mapping Collection

Dynamics Company Add/Update to iPaaS

Scopes

Created/Updated

External ID

Customer No from Business Central

Sales Order

  1. Navigate to Microsoft Dynamics 365 Business Central → Sales → Sales Orders.

  2. Use the Sales Order No as the External ID.

  3. Enter it in the manual submission in iPaaS.com.

    Sales Order No in Business Central

Product

  1. Navigate to Microsoft Dynamics 365 Business Central → Sales → Items.

  2. Use the Item No as the External ID.

  3. Open a manual submission via Integration Monitoring → Manual Sync, complete the required fields, enter the Item No in the External ID field, and transfer the data.

    Item No in Business Central

Location

  1. Search for Locations in Microsoft Dynamics 365 Business Central.

  2. Use the Location Code as the External ID.

  3. Open a manual submission via Integration Monitoring → Manual Sync, complete the required fields, enter the Location Code in the External ID field, and transfer the data.

    Location Code in Business Central

Shipping Method

  1. Search for Shipping Agents in Microsoft Dynamics 365 Business Central.

  2. Open the Shipping Agents page.

    Shipping Agents page
  3. Use the Shipping Agent Code as the External ID.

    Shipping Agent Code
  4. Open a manual submission via Integration Monitoring → Manual Sync, complete the required fields, enter the Shipping Agent Code in the External ID field, and transfer the data.

Transferring Data from iPaaS.com to Microsoft Dynamics 365 Business Central

To transfer data from iPaaS.com to Microsoft Dynamics 365 Business Central, you need the Internal ID (the iPaaS.com ID). This Internal ID is visible only within iPaaS.com.

Sales Order from iPaaS.com

  1. Navigate to Data Management → Transactions in iPaaS.com.

  2. Locate the transaction you want to transfer and click View Details.

    Transaction details in iPaaS.com
  3. Copy the Internal ID from the address bar.

    Internal ID in the address bar

    Copying the Internal ID
  4. Open a manual submission via Integration Monitoring → Manual Sync and complete the fields:

Field

Data

System

Microsoft Dynamics 365 Business Central

Mapping Collection

Dynamics Company Add/Update From iPaaS

Scopes

Created/Updated

iPaaS.com ID

Internal ID from the address bar

Note: Follow the same procedure for the other data types supported in your integration.

Custom Fields

The integration between Microsoft Dynamics 365 Business Central and iPaaS.com supports custom fields on several data models, giving subscribers or their MiSP additional flexibility when synchronizing data.

Models that support custom fields:

  1. Sales Order (Transaction) — both to and from iPaaS.com

  2. Customer — both to and from iPaaS.com

  3. Company — both to and from iPaaS.com

  4. Sales Order Line (Transaction Line) — both to and from iPaaS.com

  5. Order Tracking (Transaction Tracking) — to iPaaS.com only

  6. Product — both to and from iPaaS.com

Adding Custom Fields (Business Central to iPaaS.com)

  1. Create a custom field on the Business Central subscription in iPaaS.com.

    1. Open your Microsoft Dynamics 365 Business Central subscription in iPaaS.com.

    2. Add the desired custom field. For example, create a custom field named CatItemGroup on the Product model.

    Adding a custom field on the Business Central subscription
  2. Create the matching custom field in iPaaS.com.

    1. In iPaaS.com, create a custom field with the same name (for example, CatItemGroup).

    Matching custom field in iPaaS.com
  3. Establish the field mapping.

    1. Map the custom field between Business Central and iPaaS.com so the value transfers.

    Defining the custom field mapping

    Custom field mapping detail
  4. Transfer the data. Once the mapping is confirmed, run the transfer. The custom field value is then populated and stored on the iPaaS.com record.

    Custom field value populated in iPaaS.com

Adding Custom Fields (iPaaS.com to Business Central)

  1. Create a custom field on the Business Central subscription in iPaaS.com. For example, create a custom field named ProductTest on the Product model.

    Creating a custom field for the outbound direction
  2. Map the data in iPaaS.com. Map the custom field to static or dynamic data.

    Mapping the custom field to data
  3. Validate the transfer. Confirm the data flows from iPaaS.com to Business Central and that the field is populated correctly after the transfer.

    Validating the transferred custom field value

Note: Custom fields can be configured for any of the supported models, enabling flexible integration scenarios.

Authentication Methods

The integration authenticates to Microsoft Dynamics 365 Business Central using OAuth 2.0. iPaaS.com uses the credentials entered in the subscription settings to obtain an access token, and refreshes the token automatically as it nears expiry. Each token is valid for 60 minutes (1 hour).

OAuth 2.0 Client Credentials Grant

The client credentials grant lets the integration authenticate using its own application credentials rather than a signed-in user. Permissions are granted directly to the application by an administrator, and the application is authorized to act on its own.

To obtain an access token, ensure the following values are correctly configured in the subscription settings:

  1. Tenant Id: The directory (tenant) Id where the application is registered.

    Tenant Id in the subscription settings
  2. Grant Type: Must be set to client_credentials.

  3. Client Id: The application (client) Id assigned during registration.

    Client Id in the subscription settings
  4. Client Secret: The secret value generated for the application. Store it securely, as it is shown only once.

    Client Secret in the subscription settings
  5. Scope: The permissions or resource the application requests access to. Set it to https://api.businesscentral.dynamics.com/.default. The .default suffix requests the resource service generically without naming individual permissions.

After authentication, requests are scoped to the company named in the Company Name setting, so the records the integration reads and writes belong to that company.

Initialization Support

The following data types support initialization and can be transferred in bulk on the first connection:

  • Customer Category to iPaaS.com

  • Location to iPaaS.com

  • Shipping Method to iPaaS.com

All other data types must be configured and transferred individually during the integration process.

Throttling

Throttling prevents the Microsoft Dynamics 365 Business Central API from being overwhelmed by excessive calls, preserving performance during heavy data transfers.

The throttle fields are required, but their values are pre-populated by the integration settings. For more details, see Subscription Configuration – Edit.

Troubleshooting

Missing Credentials or API Configuration Errors

  • Ensure all required connection fields are completed, including Tenant Id, Client Id, Client Secret, and Scope.

  • Verify that the required permissions have been granted under API Permissions for Dynamics 365 Business Central.

OAuth Issues

  • For expired or invalid tokens, re-authorize the application in the Microsoft Entra Admin Center.

  • Ensure the Redirect URI matches exactly the one provided during application registration.

  • If transfers fail with authorization errors, confirm that the Grant Type is set to client_credentials and that the Company Name matches the company that holds your records.

Did this answer your question?