Microsoft Dynamics 365 Business Central

Microsoft Dynamics 365 Business Central

Let AI connect your sources for you

Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Learn more
PostHog Wizard hedgehog

Connect Microsoft Dynamics 365 Business Central to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.

Sync your Business Central customers, vendors, items, documents and general ledger entries into the PostHog Data warehouse.

Register an app in Microsoft Entra ID and grant it the API.ReadWrite.All application permission with admin consent, then add it as a Business Central user in the environment you want to sync. Enter that app's client ID and secret below, along with your Entra tenant ID and the environment name (usually production).

Every table except companies is synced for all companies in the environment, with the company ID kept on each row.

Configuration

OptionTypeRequired
Microsoft Entra tenant IDtextYes
Environment nametextYes
Application (client) IDtextYes
Client secretpasswordYes

Linking Microsoft Dynamics 365 Business Central to PostHog

  1. Go to the Data pipeline page in PostHog
  2. Click New source and select Microsoft Dynamics 365 Business Central
  3. Fill in the required configuration fields
  4. Click Next, select the tables you want to sync, and then press Import

Supported tables

TableDescriptionSync methodIncremental fieldPrimary key
companies

A company (legal entity with its own books) inside a Business Central environment.

Full refresh
accounts

A general ledger account from the company's chart of accounts.

Incremental, Full refreshlastModifiedDateTime
bankAccounts

A bank account the company reconciles payments against.

Incremental, Full refreshlastModifiedDateTime
currencies

A currency the company can transact in, with its rounding rules.

Incremental, Full refreshlastModifiedDateTime
customers

A customer the company sells to, with its balance and default posting setup.

Incremental, Full refreshlastModifiedDateTime
dimensions

An analysis dimension (for example Department or Project) used to tag ledger entries.

Incremental, Full refreshlastModifiedDateTime
dimensionValues

One allowed value of an analysis dimension.

Incremental, Full refreshlastModifiedDateTime
employees

An employee registered in the company, used for time and expense posting.

Incremental, Full refreshlastModifiedDateTime
itemCategories

A category used to group items in the item list.

Incremental, Full refreshlastModifiedDateTime
items

An inventory or service item the company sells, with cost, price and stock level.

Incremental, Full refreshlastModifiedDateTime
paymentMethods

A payment method that can be set on customers, vendors and documents.

Incremental, Full refreshlastModifiedDateTime
paymentTerms

A set of payment terms controlling due dates and early-payment discounts.

Incremental, Full refreshlastModifiedDateTime
shipmentMethods

A shipment method (delivery terms) that can be set on customers and documents.

Incremental, Full refreshlastModifiedDateTime
unitsOfMeasure

A unit of measure items can be counted, sold and purchased in.

Incremental, Full refreshlastModifiedDateTime
vendors

A vendor the company buys from, with its payable balance and posting setup.

Incremental, Full refreshlastModifiedDateTime
locations

A warehouse or site inventory can be stored at and shipped from.

Full refresh
salesInvoices

A sales invoice header, draft or posted, with its totals and customer.

Incremental, Full refreshlastModifiedDateTime
salesInvoiceLines

A line on a sales invoice: the item, resource or account being invoiced.

Full refresh
salesOrders

A sales order header, with its customer, totals and fulfilment status.

Incremental, Full refreshlastModifiedDateTime
salesOrderLines

A line on a sales order: what is ordered, at what price, and how much has shipped.

Full refresh
salesQuotes

A sales quote header offered to a customer or contact.

Incremental, Full refreshlastModifiedDateTime
salesQuoteLines

A line on a sales quote: what is being offered, at what price.

Full refresh
salesCreditMemos

A sales credit memo header crediting a customer for returned or over-invoiced goods.

Incremental, Full refreshlastModifiedDateTime
salesCreditMemoLines

A line on a sales credit memo: what is being credited back to the customer.

Full refresh
purchaseInvoices

A purchase invoice header received from a vendor, with its totals.

Incremental, Full refreshlastModifiedDateTime
purchaseInvoiceLines

A line on a purchase invoice: the item, resource or account being purchased.

Full refresh
generalLedgerEntries

A posted general ledger entry — the append-only record of every amount hitting a G/L account.

Incremental, Full refreshlastModifiedDateTime
customerPayments

A customer payment journal line recording money received against invoices.

Incremental, Full refreshlastModifiedDateTime