
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.

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
| Option | Type | Required |
|---|---|---|
Microsoft Entra tenant ID | text | Yes |
Environment name | text | Yes |
Application (client) ID | text | Yes |
Client secret | password | Yes |
Linking Microsoft Dynamics 365 Business Central to PostHog
- Go to the Data pipeline page in PostHog
- Click New source and select Microsoft Dynamics 365 Business Central
- Fill in the required configuration fields
- Click Next, select the tables you want to sync, and then press Import
Supported tables
| Table | Description | Sync method | Incremental field | Primary 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 refresh | lastModifiedDateTime | — |
bankAccounts | A bank account the company reconciles payments against. | Incremental, Full refresh | lastModifiedDateTime | — |
currencies | A currency the company can transact in, with its rounding rules. | Incremental, Full refresh | lastModifiedDateTime | — |
customers | A customer the company sells to, with its balance and default posting setup. | Incremental, Full refresh | lastModifiedDateTime | — |
dimensions | An analysis dimension (for example Department or Project) used to tag ledger entries. | Incremental, Full refresh | lastModifiedDateTime | — |
dimensionValues | One allowed value of an analysis dimension. | Incremental, Full refresh | lastModifiedDateTime | — |
employees | An employee registered in the company, used for time and expense posting. | Incremental, Full refresh | lastModifiedDateTime | — |
itemCategories | A category used to group items in the item list. | Incremental, Full refresh | lastModifiedDateTime | — |
items | An inventory or service item the company sells, with cost, price and stock level. | Incremental, Full refresh | lastModifiedDateTime | — |
paymentMethods | A payment method that can be set on customers, vendors and documents. | Incremental, Full refresh | lastModifiedDateTime | — |
paymentTerms | A set of payment terms controlling due dates and early-payment discounts. | Incremental, Full refresh | lastModifiedDateTime | — |
shipmentMethods | A shipment method (delivery terms) that can be set on customers and documents. | Incremental, Full refresh | lastModifiedDateTime | — |
unitsOfMeasure | A unit of measure items can be counted, sold and purchased in. | Incremental, Full refresh | lastModifiedDateTime | — |
vendors | A vendor the company buys from, with its payable balance and posting setup. | Incremental, Full refresh | lastModifiedDateTime | — |
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 refresh | lastModifiedDateTime | — |
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 refresh | lastModifiedDateTime | — |
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 refresh | lastModifiedDateTime | — |
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 refresh | lastModifiedDateTime | — |
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 refresh | lastModifiedDateTime | — |
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 refresh | lastModifiedDateTime | — |
customerPayments | A customer payment journal line recording money received against invoices. | Incremental, Full refresh | lastModifiedDateTime | — |