Business Central Integration

Prev Next

This article covers connecting MakersHub to Microsoft Dynamics 365 Business Central. There are four main steps:

1. Register an app in Microsoft Entra ID and create a client secret.

2. Install the MakersHub AP Connector extension in Business Central.

3. Give the app access in Business Central.

4. Enter the credentials in MakersHub, test the connection, and sync your data.

Before You Start

  • Business Central Online, version 28 or later - On-premises Business Central is not supported. You can find your version in Business Central on the Help and Support page, under Troubleshooting.

  • US sales tax - MakersHub supports Business Central companies that use US sales tax. Companies that use VAT are not supported.

  • A Microsoft Entra admin - Someone who can register an app and grant admin consent, such as an Application Administrator, Cloud Application Administrator or Privileged Role Administrator. A Dynamics 365 Administrator cannot grant admin consent.

  • A Business Central admin - A Business Central user with the SUPER or SECURITY permission set, who can install extensions and set up Microsoft Entra Applications.

  • Integration access in MakersHub - Only admins and users with integration access can see the Integrations page.

  • One company at a time - Each MakersHub company connects to one Business Central company, and a Business Central company can be connected to only one MakersHub company. MakersHub also connects to one integration at a time. If another integration is already connected, Business Central is not listed on the Integrations page. Contact MakersHub Support if you need help.

Bills post right away

MakersHub posts every bill, credit, payment and refund to Business Central as soon as it syncs. There is no draft review step in Business Central, so finish all of the setup below before your first sync.

Microsoft Entra ID - Register the App

1. In the Microsoft Entra admin center, go to App registrations and click New registration. Give the app a name you will recognize later, for example MakersHub Business Central. Under Supported account types, choose Accounts in this organizational directory only, then click Register.

2. On the app's Overview page, copy the Application (client) ID and the Directory (tenant) ID. You will enter both in MakersHub.

Microsoft Entra app registration overview showing the Application (client) ID and Directory (tenant) ID

3. Open API permissions and click Add a permission. Choose Dynamics 365 Business Central, then Application permissions, select API.ReadWrite.All, and click Add permissions.

4. Click Grant admin consent for your organization and confirm. The Status column should show Granted.

API permissions with Dynamics 365 Business Central API.ReadWrite.All granted

Application permission and admin consent are required

Choose Application permissions, not Delegated permissions. Without admin consent, Business Central rejects every request from MakersHub.

5. Open Certificates & secrets, then the Client secrets tab, and click New client secret. Choose an expiry and click Add. Copy the secret Value right away (not the Secret ID). Entra only shows the value once.

Certificates and secrets page with a client secret and its expiry date

Plan for the secret's expiry

When the client secret expires, every sync with Business Central stops. Write down the expiry date and who will renew it, and set a reminder about 30 days before. To renew, create a new client secret in the same app registration, then follow Renew the Client Secret below. Delete the old secret only after MakersHub has synced with the new one.

Keep your client secret private. Enter it in MakersHub yourself; never send it by email or chat.

Business Central - Install the MakersHub AP Connector

MakersHub creates bills, payments and refunds through the MakersHub AP Connector extension. Contact MakersHub Support for the extension file, then:

1. In Business Central, search for Extension Management.

2. Click Manage, then Upload Extension. Choose the file from MakersHub Support and click Deploy.

3. When the installation finishes, MakersHub AP Connector appears in the list of installed extensions.

Extension Management showing MakersHub AP Connector installed

Business Central - Give MakersHub Access

Install the extension first. The permission set below is part of the extension, so it does not exist in Business Central until the extension is installed.

1. Search for Microsoft Entra Applications and click New.

2. In Client ID, enter the Application (client) ID from Microsoft Entra. In Description, enter MakersHub.

3. Leave State set to Disabled. Under User Permission Sets, add MKH AP CONNECTOR and leave Company blank.

4. Set State to Enabled.

Microsoft Entra Application Card for MakersHub with the MKH AP CONNECTOR permission set and State Enabled

Changing permissions later

Business Central only accepts permission changes while the card's State is Disabled. To change them later, set State to Disabled, make the change, then set it back to Enabled. You only need one card per environment.

Vendor Template for New Vendors

MakersHub can create vendors in Business Central, for example when a new supplier's first bill syncs. Business Central's API cannot set posting groups, so Business Central fills them from the vendor template named on the API Setup page. Without one, vendors that MakersHub creates have no posting groups and their bills cannot post.

1. Search for API Setup.

2. Add a line for vendors (Table ID 23) and choose a template that sets the Gen. Bus. Posting Group and Vendor Posting Group, plus the Tax Area if you use US sales tax.

API Setup page with a vendor template for MakersHub API-created vendors

Other Business Central Settings to Check

  • Allowed posting dates - Bills post on their invoice date and payments on their payment date. Make sure Allow Posting From and Allow Posting To in General Ledger Setup cover the dates your AP team enters.

  • Approval workflows - A purchase invoice approval workflow in Business Central stops MakersHub from posting bills, and a purchase order pending approval cannot be billed.

  • Direct Posting accounts - Only G/L accounts of type Posting with Direct Posting turned on appear in MakersHub. If an expense account is missing, turn on Direct Posting for it.

  • Bank accounts and credit cards - Payments are made from Business Central bank accounts. A credit card is a bank account whose Bank Account Posting Group posts to a liability account.

  • Receipt on Invoice - MakersHub cannot receive purchase order lines flagged Receipt on Invoice. Turn the policy off for vendors whose bills you match to purchase orders.

  • Duplicate vendor names - MakersHub matches suppliers to vendors by name. Merge or rename vendors that share a name.

  • Currencies - Bills post in the invoice's currency at Business Central's exchange rate. Each currency you bill in needs exchange rates in Business Central.

MakersHub - Connect to Business Central

1. Click your name in the upper right, then click Integrations.

MakersHub user menu with Integrations

2. Click Connect next to Dynamics 365 Business Central.

Integration Partners list with Dynamics 365 Business Central

3. In the setup window, click Create a Business Central Connection and enter:

  • Tenant ID - The Directory (tenant) ID from Microsoft Entra. Use the ID, not a domain name such as contoso.onmicrosoft.com.

  • Client ID - The Application (client) ID.

  • Client Secret - The secret Value.

  • Environment Name - The name of your Business Central environment, for example Production or the name of a sandbox. It appears in your Business Central web address after the tenant.

4. Click Find Companies, choose your Business Central company from the Company list, and click Save.

5. Click Test Connection. When the test succeeds, you will see Connected to Business Central with MakersHub AP Connector followed by the extension version.

Business Central credentials in MakersHub with a successful Test Connection

Vendor template warning

If the test result also says that API Setup names no vendor template, set one up (see Vendor Template for New Vendors above) before your first sync.

6. Click Sync Data with Business Central. The first sync may take some time. MakersHub brings over your vendors, chart of accounts, bank accounts and credit cards, items, projects, dimensions, locations, purchase orders and receipts, open bills and credits, and payments made in Business Central.

7. When the sync finishes, the window changes to Dynamics 365 Business Central Mapping. Open the Integration Data tab to see the records MakersHub brought over from Business Central.

Dynamics 365 Business Central Mapping window, Integration Data tab

Congratulations, you have successfully connected MakersHub and Business Central.

MakersHub - Settings to Review

  • Sync Bill Attachments (Integration Data tab) - Attaches each bill's invoice document and supporting documents to the bill in Business Central.

  • Enable Dimensions (Integration Data tab) - Every Business Central dimension is available as a custom field. Under Header Dimensions and Dimensions, choose which ones appear on bills at the header and line level. A Location field is offered when Business Central has locations.

  • Payment accounts - Map every account you pay from to its Business Central bank account or credit card. Payments from an account that is not mapped cannot sync.

  • Sync on First Approval (Bill Settings) - When on, Business Central posts the bill at the first approval, and later approvals do not change the posted bill. Leave it off if Business Central should only receive fully approved bills.

  • Consolidated Bill Items Sync (Bill Settings) - Turn this off if you match bills to purchase orders or code lines with dimensions. Bills that would merge those lines are refused.

How Records Sync

Bills

When a bill is approved, MakersHub creates and posts a purchase invoice in Business Central. The bill number becomes the Vendor Invoice No. and the invoice date becomes the Posting Date. If the supplier has no vendor in Business Central yet, MakersHub creates one first.

Posted purchase invoice in Business Central created by MakersHub

  • Lines must add up to the total - Business Central bills the lines, so tax, freight and fees the vendor charged must be on lines. A bill whose lines do not add up to its total is refused.

  • Sales tax - The MakersHub total wins. MakersHub clears Business Central's US sales tax on each bill, so Business Central does not add tax on top.

  • Bills matched to purchase orders - MakersHub receives any quantity not yet received on the matched purchase order lines, then bills those receipt lines. Matched lines keep the purchase order line's item or account, dimensions, location and project. Once a purchase order is fully invoiced, MakersHub deletes it in Business Central, as Business Central's own Delete Invoiced Purchase Orders does.

  • Projects - Business Central project tasks appear in MakersHub's Customer/Job list, and lines can be charged to them.

  • Credits - A vendor credit (a negative bill) posts as a purchase credit memo.

Editing a Bill After It Posts

Business Central does not allow changes to a posted invoice. When you edit a posted bill in MakersHub and approve it again, MakersHub cancels the posted invoice in Business Central with a corrective credit memo and posts the edited bill as a new invoice. To edit an approved bill, click Un-approve, make your changes, then approve it again.

A bill that is already paid or partly paid in Business Central cannot be canceled. MakersHub leaves it unchanged and records a Sync Error. Unapply the payment in Business Central, then sync the bill again.

Payments

A payment made or marked as paid in MakersHub posts in Business Central as a vendor payment applied to its bills and credits. Its Document No. is MH followed by the MakersHub payment ID, and the payment reference becomes the External Document No.

Vendor Ledger Entries with a payment posted by MakersHub

Paid status follows Business Central in both directions. A bill paid in Business Central leaves Payables in MakersHub on the next refresh, and a bill whose payment is reversed in Business Central returns to Payables.

Things to Know

  • Drafts named MKH-DRAFT - While MakersHub builds a bill, Business Central shows a draft purchase invoice named MKH-DRAFT followed by the invoice ID. Never post one by hand. If a sync is interrupted, the next sync of that bill removes it.

  • Sync errors - When Business Central refuses a record, the reason appears in Sync Errors in MakersHub. Fix the cause in MakersHub or Business Central, then sync the record again.

  • Multiple Business Central companies - Each Business Central company needs its own MakersHub company.

Renew the Client Secret

1. In Microsoft Entra, create a new client secret in the same app registration and copy its Value.

2. In MakersHub, open Integrations, click View next to Dynamics 365 Business Central, then click Edit API Credentials and Edit.

3. Enter the new value in Client Secret, click Find Companies, choose the same company and click Save. Syncing resumes right away.

4. Click Test Connection to confirm, then delete the old secret in Microsoft Entra.