
Microsoft Dynamics 365 Business Central
tap-microsoft-dynamics-bc (meltanolabs variant)
Microsoft Dynamics 365 Business Central is Microsoft's cloud ERP for small and mid-sized organisations: finance, sales, purchasing, inventory, projects and manufacturing.
The tap-microsoft-dynamics-bc extractor reads Business Central (online or on-premises) through its REST APIs, using service-to-service authentication (client ID and secret), so no user has to sign in and nothing breaks when an employee leaves. It extracts every company in an environment, or the ones you choose, and covers:
- Every standard API v2.0 entity: customers, vendors, items, G/L accounts and entries, sales and purchase documents with their lines, journals, dimensions, fixed assets, projects, employees and the financial statements.
- Ledger entries the standard API does not expose: customer, vendor and detailed ledger entries, G/L budgets and dimension set entries, from Microsoft's API Reports - Finance app.
- Item, value, warehouse, job and manufacturing ledgers from Microsoft's analytics API (installed with the Power BI Reports apps). These streams are opt-in.
- Your own data: fields added by extensions are picked up automatically, and custom API pages or published OData web services can be added in settings.
Schemas are read from your environment's OData $metadata at discovery, so the
catalog matches your Business Central version, localisation and extensions.
Prerequisites
Setup has two parts, both done by your administrators: register an application in Microsoft Entra ID, then grant that application access in Business Central. This is Microsoft's standard service-to-service authentication.
You need Business Central online 18.3 or later, or on-premises 18.11, 19.5 or
later configured for Microsoft Entra authentication with OpenID Connect (with
https://api.businesscentral.dynamics.com in the server's ValidAudiences; set
base_url to the server instance URL). You also need a Microsoft Entra administrator
who can register applications and grant admin consent, and a Business Central user who
can manage Microsoft Entra applications (for example SUPER or SECURITY).
1. Register the application in Microsoft Entra ID
- In the Microsoft Entra admin center, open App registrations > New registration. Name it, choose Accounts in this organizational directory only, leave Redirect URI empty and register it.
- Copy the Application (client) ID and the Directory (tenant) ID.
- Under Certificates & secrets, create a client secret and copy its Value immediately. Note the expiry date: the connection stops working when the secret expires.
- Under API permissions, add Dynamics 365 Business Central > Application permissions > API.ReadWrite.All, then select Grant admin consent.
Why "ReadWrite"? Microsoft offers no read-only application permission for Business Central. What the application can actually do is decided by the Business Central permission set granted in the next step, which is read-only. The extractor only ever sends
GETrequests.
2. Grant the application access in Business Central
Do these steps in this order: Business Central only accepts permission sets while the application is Disabled and its user exists.
- Search for Microsoft Entra Applications and select New.
- Enter the Client ID and a Description. Leave State as Disabled.
- Select Click here to create the application user in the notification at the top.
- Under User Permission Sets, add
D365 READ. It is all that is needed and covers every stream, including the Finance reports. Leave Company blank to grant it in all companies, or add one line per company to restrict access. - Set State to Enabled.
If Business Central answers 401 Authentication_InvalidCredentials although a token is
issued, there is no Enabled card for that client ID in that environment.
3. Optional: more data
- Analytics streams (
analytics_*) need Microsoft's Power BI Reports app installed. They are not selected by default. - Extension APIs: add an extension's API route (for example
api/contoso/banking/v1.0) tocustom_apis. Every entity becomes a stream. - Pages and queries that have no API: publish the page or query under Web
Services in Business Central and add its Service Name to
web_services. If it showsSystemModifiedAt, set that as thereplication_keyto load incrementally.
Data recovery / backfill
- Re-extract everything: clear the pipeline state or run with a full refresh.
Incremental streams then start again from
start_date; full-table streams are always complete. - Backfill a period: set
start_dateto the start of the period and run once with a full refresh. Records are upserted by primary key, so overlapping runs do not create duplicates. - Deleted records: Business Central keeps no record of deletions for incremental
streams. Working documents (orders, quotes, journals, transfer orders), employees and
every stream without a modification timestamp are read in full each run and send
ACTIVATE_VERSION, so deletes propagate. For master data such as customers, vendors and items, either extract them in full (setreplication-method: FULL_TABLEon the stream in the extractormetadata), run a periodic full refresh, or keep an audit trail with the Business Central Change Log published as a web service. - The loader must honour
ACTIVATE_VERSION. Loaders built on the Meltano Singer SDK (for example MeltanoLabstarget-postgres,target-snowflakeandtarget-mssql) also needadd_record_metadata: true, otherwise no deletes are ever applied. They then soft-delete by default, setting_sdc_deleted_aton rows that are gone, so filter on_sdc_deleted_at IS NULL, or sethard_delete: trueto remove the rows. Some loaders ignoreACTIVATE_VERSIONaltogether, so deleted rows stay. - SQL Server targets create
varcharcolumns, so text outside the database collation's code page (for example Polish, Greek or Japanese names under the defaultSQL_Latin1_General_CP1_CI_AS) is stored as?. Load into a database with a UTF-8 collation such asLatin1_General_100_CI_AS_SC_UTF8.
Available Streams
Every company-scoped stream has a company_id column, which is part of its primary
key together with the entity key. Streams are discovered from your environment, so
fields added by extensions appear automatically, and an endpoint that your Business
Central release or permissions do not offer is skipped with a warning.
Replication: incremental streams filter on lastModifiedDateTime with a bookmark
per company (draft invoices and credit memos are also read again every run, so edits to
their lines are not missed). Full table streams are read in full each run.
Lines are read together with their header document.
companies (full table) lists the companies in the environment and is the parent of
every other stream.
Standard API (v2.0)
| Stream | Replication | Description |
|---|---|---|
accounting_periods | Incremental (lastModifiedDateTime) | Exposes accounting period data including starting dates, period names, fiscal year status, closure indicators, date locks, and average cost calculation settings. |
accounts | Incremental (lastModifiedDateTime) | Provides access to chart of accounts data from the G/L Account table, including account numbers, names, categories, balances, posting settings, and consolidation attributes. |
aged_accounts_payables | Full table | Provides access to aged accounts payable data, including vendor details, outstanding balances, and amounts overdue by aging period. |
aged_accounts_receivables | Full table | Provides real-time aged accounts receivable data, including customer details, outstanding balances, and amounts due by aging period. |
approval_entries | Incremental (lastModifiedDateTime) | |
assembly_order_lines | Full table | |
assembly_orders | Full table | |
balance_sheets | Full table | Provides access to balance sheet reports, detailing assets, liabilities, and equity with account-level breakdowns and date filters. |
bank_accounts | Incremental (lastModifiedDateTime) | Manages bank account records including account numbers, bank names, balances, currency details, and identifiers such as IBAN and SWIFT codes. |
blanket_purchase_order_lines | Full table | Provides access to individual blanket purchase order line data, including item details, quantities, unit pricing, discounts, and outstanding quantities. |
blanket_purchase_orders | Full table | Exposes blanket purchase order documents for long-term procurement agreements, including vendor details, order status, delivery and payment information, addresses, and currency. |
blanket_sales_order_lines | Full table | Provides access to individual blanket sales order line data, including item details, quantities, unit pricing, discounts, and outstanding quantities. |
blanket_sales_orders | Full table | Exposes blanket sales order documents for long-term customer agreements, including customer details, order status, delivery and payment information, addresses, and currency. |
cash_flow_statements | Full table | Exposes cash flow statement data, including line-level details such as net change, activity type, description, and date filters, segmented by operating, investing, and financing activities. |
company_information | Incremental (lastModifiedDateTime) | Exposes company profile data including name, descriptions, address, contact details, tax registration numbers, banking information, and branding attributes. |
contacts | Incremental (lastModifiedDateTime) | Manages contact records for individuals and organizations, exposing data such as names, addresses, phone numbers, email addresses, job titles, and business relationships. |
countries_regions | Incremental (lastModifiedDateTime) | |
currencies | Incremental (lastModifiedDateTime) | Manages currency master data including codes, symbols, ISO codes, rounding settings, and related financial accounts. |
currency_exchange_rates | Incremental (lastModifiedDateTime) | Exposes currency exchange rate records including currency codes, exchange rate amounts, relational currency details, and effective dates. |
customer_financial_details | Incremental (lastModifiedDateTime) | Provides access to consolidated customer financial data, including outstanding balances, overdue amounts, payment history, and credit limits. |
customer_payment_journals | Full table | |
customer_payments | Lines of customer_payment_journals | Manages customer payment transactions, including payment amounts, dates, methods, related invoices, and journal details. |
customer_return_reasons | Incremental (lastModifiedDateTime) | |
customer_sales | Full table | Aggregated customer sales data including total sales amounts summarized from posted invoices and credit memos. |
customers | Incremental (lastModifiedDateTime) | Manages customer master data including contact details, addresses, payment terms, credit limits, tax information, and financial balances. |
dimension_values | Incremental (lastModifiedDateTime) | Exposes dimension value records, including codes, names, types, consolidation mappings, and status indicators for analytical structures such as departments, cost centers, and projects. |
dimensions | Incremental (lastModifiedDateTime) | Exposes dimension master data including codes, names, consolidation codes, status, and last modified timestamps for categorizing and analyzing financial transactions in Business Central. |
dispute_status | Full table | Manages dispute status definitions including code, description, and on-hold update settings. |
employees | Full table | Manages employee master data including personal details, contact information, employment status, job titles, payroll attributes, and banking information. |
fixed_asset_locations | Incremental (lastModifiedDateTime) | Manages fixed asset location records, including codes, names, and last modified dates. |
fixed_assets | Incremental (lastModifiedDateTime) | Provides access to fixed asset master data, including asset numbers, descriptions, location codes, class and subclass codes, blocked status, serial numbers, responsible employees, maintenance status, and last modified dates. |
general_ledger_entries | Incremental (lastModifiedDateTime) | |
general_ledger_setup | Incremental (lastModifiedDateTime) | |
general_product_posting_groups | Incremental (lastModifiedDateTime) | |
income_statements | Full table | Provides access to income statement data, including revenues, expenses, net change, and account breakdowns over specified periods. |
inventory_posting_groups | Incremental (lastModifiedDateTime) | |
inventory_receipt_lines | Full table | |
inventory_receipts | Full table | |
inventory_shipment_lines | Full table | |
inventory_shipments | Full table | |
item_categories | Incremental (lastModifiedDateTime) | Manages item category records including codes, descriptions, parent-child relationships, and hierarchy structure. |
item_ledger_entries | Incremental (lastModifiedDateTime) | Provides access to detailed item ledger entries, including inventory transactions such as receipts, shipments, adjustments, and transfers. |
item_variants | Incremental (lastModifiedDateTime) | Exposes item variant data including codes, descriptions, and status flags for managing different product configurations such as size or color. |
items | Incremental (lastModifiedDateTime) | Exposes item master data including product descriptions, pricing, unit costs, tax groups, categorization, and real-time inventory levels. |
journal_lines | Lines of journals | Manages individual general journal line entries, including account details, amounts, dimensions, tax codes, and descriptions. |
journals | Full table | Exposes general journal batch data including template type, balancing account details, approval status, and VAT settings. |
locations | Incremental (lastModifiedDateTime) | Exposes warehouse and inventory location master data including codes, addresses, contact details, and operational settings. |
opportunities | Incremental (lastModifiedDateTime) | Manages sales opportunity records including stages, estimated values, probability, related contacts, and status. |
payment_methods | Incremental (lastModifiedDateTime) | Manages payment method definitions including codes, descriptions, balance account settings, and direct debit options for both customers and vendors. |
payment_terms | Incremental (lastModifiedDateTime) | Manages payment term definitions including codes, descriptions, due date and discount calculations, and discount percentages. |
physical_inventory_order_lines | Full table | |
physical_inventory_orders | Full table | |
physical_inventory_recording_lines | Full table | |
physical_inventory_recordings | Full table | |
posted_approval_entries | Incremental (lastModifiedDateTime) | |
posted_assembly_order_lines | Incremental (lastModifiedDateTime) | |
posted_assembly_orders | Incremental (lastModifiedDateTime) | |
posted_direct_transfer_lines | Incremental (lastModifiedDateTime) | |
posted_direct_transfers | Incremental (lastModifiedDateTime) | |
posted_inventory_receipt_lines | Incremental (lastModifiedDateTime) | |
posted_inventory_receipts | Incremental (lastModifiedDateTime) | |
posted_inventory_shipment_lines | Incremental (lastModifiedDateTime) | |
posted_inventory_shipments | Incremental (lastModifiedDateTime) | |
posted_physical_inventory_order_lines | Incremental (lastModifiedDateTime) | |
posted_physical_inventory_orders | Incremental (lastModifiedDateTime) | |
posted_physical_inventory_recording_lines | Incremental (lastModifiedDateTime) | |
posted_physical_inventory_recordings | Incremental (lastModifiedDateTime) | |
projects | Incremental (lastModifiedDateTime) | Exposes comprehensive project management data including project setup, status, budgeting, customer details, scheduling, and financial metrics. |
purchase_blanket_order_archive_lines | Incremental (lastModifiedDateTime) | |
purchase_blanket_order_archives | Incremental (lastModifiedDateTime) | |
purchase_credit_memo_lines | Lines of purchase_credit_memos | |
purchase_credit_memos | Incremental, drafts re-read | Manages purchase credit memo documents, exposing vendor details, transaction amounts, addresses, currency, payment terms, and status. |
purchase_invoice_lines | Lines of purchase_invoices | Exposes detailed line-level data for purchase invoices, including item or account references, quantities, unit costs, discounts, tax amounts, dimensions, and expected receipt dates. |
purchase_invoices | Incremental, drafts re-read | Manages purchase invoice documents including vendor details, invoice amounts, due dates, payment terms, addresses, and status. |
purchase_order_archive_lines | Incremental (lastModifiedDateTime) | |
purchase_order_archives | Incremental (lastModifiedDateTime) | |
purchase_order_lines | Lines of purchase_orders | Provides detailed access to individual purchase order lines, including item, quantity, pricing, discounts, tax details, location, and expected receipt dates. |
purchase_orders | Full table | Manages purchase order documents, exposing vendor details, order status, delivery and payment information, addresses, currency, totals, and discounts. |
purchase_quote_archive_lines | Incremental (lastModifiedDateTime) | |
purchase_quote_archives | Incremental (lastModifiedDateTime) | |
purchase_quote_lines | Full table | Provides access to individual purchase quote line data, including item details, quantities, unit pricing, discounts, and amounts. |
purchase_quotes | Full table | Exposes purchase quote documents for vendor price requests, including vendor details, quote status, delivery and payment information, addresses, and currency. |
purchase_receipt_lines | Lines of purchase_receipts | Provides access to detailed purchase receipt line data, including received items, quantities, unit costs, discounts, tax amounts, locations, and links to related purchase and sales orders. |
purchase_receipts | Incremental (lastModifiedDateTime) | Exposes purchase receipt documents, capturing details of goods received from vendors including receipt numbers, dates, vendor information, addresses, related order data, and currency. |
purchase_return_order_archive_lines | Incremental (lastModifiedDateTime) | |
purchase_return_order_archives | Incremental (lastModifiedDateTime) | |
purchase_return_order_lines | Full table | Provides access to individual purchase return order line data, including item details, quantities, unit pricing, discounts, and amounts. |
purchase_return_orders | Full table | Exposes purchase return order documents for returning goods to vendors, including vendor details, return status, delivery and payment information, addresses, and currency. |
purchase_return_shipments | Full table | Exposes purchase return shipment documents, capturing details of goods returned to vendors including shipment numbers, dates, vendor information, addresses, and related order data. |
retained_earnings_statements | Full table | Provides access to retained earnings statement data, including net changes, descriptions, fiscal period breakdowns, and company-level summaries. |
return_receipts | Incremental (lastModifiedDateTime) | Exposes posted sales return receipt data including receipt numbers, customer and bill-to information, addresses, dates, order references, and tracking details. |
sales_blanket_order_archive_lines | Incremental (lastModifiedDateTime) | |
sales_blanket_order_archives | Incremental (lastModifiedDateTime) | |
sales_credit_memo_lines | Lines of sales_credit_memos | Manages line-level details of sales credit memos, including item, quantity, unit price, discounts, tax amounts, and dimensions. |
sales_credit_memos | Incremental, drafts re-read | Manages sales credit memo documents, exposing customer details, billing and shipping addresses, financial amounts, tax information, status, and related invoice references. |
sales_invoice_lines | Lines of sales_invoices | Manages line-level details of sales invoices, including items or accounts, quantities, unit prices, discounts, tax codes, dimensions, and shipment data. |
sales_invoices | Incremental, drafts re-read | Manages sales invoice documents, exposing invoice headers, customer details, billing and shipping addresses, amounts, tax information, due dates, and status. |
sales_order_archive_lines | Incremental (lastModifiedDateTime) | |
sales_order_archives | Incremental (lastModifiedDateTime) | |
sales_order_lines | Lines of sales_orders | Exposes detailed sales order line data including item, variant, location, quantity, pricing, discounts, tax amounts, and shipment dates. |
sales_orders | Full table | Manages sales order documents including customer details, billing and shipping addresses, order status, delivery dates, and financial totals. |
sales_quote_archive_lines | Incremental (lastModifiedDateTime) | |
sales_quote_archives | Incremental (lastModifiedDateTime) | |
sales_quote_lines | Lines of sales_quotes | Manages sales quote line details including items, services, quantities, unit pricing, discounts, taxes, and dimensions. |
sales_quotes | Full table | Manages sales quote documents including customer details, quote status, pricing, addresses, and validity dates. |
sales_return_order_archive_lines | Incremental (lastModifiedDateTime) | |
sales_return_order_archives | Incremental (lastModifiedDateTime) | |
sales_return_order_lines | Full table | Provides access to individual sales return order line data, including item details, quantities, unit pricing, discounts, and return-specific fields. |
sales_return_orders | Full table | Exposes sales return order documents for processing customer returns, including customer details, return status, delivery and payment information, addresses, and currency. |
sales_shipment_lines | Lines of sales_shipments | Provides access to detailed sales shipment line data, including shipped items, quantities, unit pricing, discounts, tax information, shipment dates, locations, and links to related sales and purchase documents. |
sales_shipments | Incremental (lastModifiedDateTime) | Exposes detailed sales shipment document data, including shipment numbers, customer and bill-to/ship-to information, addresses, dates, order references, and tracking details. |
salespeople_purchasers | Incremental (lastModifiedDateTime) | |
shipment_methods | Incremental (lastModifiedDateTime) | Manages shipment method definitions including codes, and descriptions. |
tax_areas | Incremental (lastModifiedDateTime) | Manages tax area definitions including code, description, tax type (Sales Tax or VAT), and last modified date. |
tax_groups | Incremental (lastModifiedDateTime) | Manages tax group definitions including codes, descriptions, and tax types (Sales Tax, VAT) for categorizing items and services in Business Central. |
time_registration_entries | Lines of employees | |
transfer_order_lines | Full table | |
transfer_orders | Full table | |
transfer_receipt_lines | Incremental (lastModifiedDateTime) | |
transfer_receipts | Incremental (lastModifiedDateTime) | |
transfer_shipment_lines | Incremental (lastModifiedDateTime) | |
transfer_shipments | Incremental (lastModifiedDateTime) | |
trial_balances | Full table | Exposes trial balance data for all general ledger accounts, including account numbers, names, types, debit and credit balances, and period-based filters. |
units_of_measure | Incremental (lastModifiedDateTime) | Manages unit of measure definitions including code, description, international standard code, and symbol. |
vendor_payment_journals | Full table | |
vendor_payments | Lines of vendor_payment_journals | Manages vendor payment transactions including payment amounts, dates, methods, and invoice application details. |
vendor_purchases | Full table | Aggregated vendor purchase data including total purchase amounts summarized from vendor ledger entries. |
vendors | Incremental (lastModifiedDateTime) | Exposes vendor master data including company details, addresses, contact information, payment terms, tax registration, currency, and financial balances. |
Finance reports API
| Stream | Replication | Description |
|---|---|---|
reports_finance_accounting_periods | Incremental (lastModifiedDateTime) | |
reports_finance_business_units | Incremental (lastModifiedDateTime) | |
reports_finance_customer_ledger_entries | Incremental (lastModifiedDateTime) | Provides access to customer ledger entries including document types, amounts in local and foreign currencies, posting dates, and balancing account information. |
reports_finance_customers | Incremental (lastModifiedDateTime) | |
reports_finance_detailed_customer_ledger_entries | Incremental (lastModifiedDateTime) | Provides access to detailed customer ledger entries including entry types, amounts, currency codes, and dimension information. |
reports_finance_detailed_vendor_ledger_entries | Incremental (lastModifiedDateTime) | Provides access to detailed vendor ledger entries including entry types, amounts, currency codes, and dimension information. |
reports_finance_dimension_set_entries | Incremental (lastModifiedDateTime) | |
reports_finance_dimension_values | Incremental (lastModifiedDateTime) | |
reports_finance_general_ledger_accounts | Incremental (lastModifiedDateTime) | |
reports_finance_general_ledger_budget_entries | Incremental (lastModifiedDateTime) | Provides access to general ledger budget entries including budget names, amounts, dates, account numbers, and dimension codes. |
reports_finance_general_ledger_budgets | Incremental (lastModifiedDateTime) | |
reports_finance_general_ledger_entries | Incremental (lastModifiedDateTime) | Provides access to general ledger entries including posting dates, account numbers, amounts, dimensions, and source information. |
reports_finance_global_settings | Full table | |
reports_finance_vendor_ledger_entries | Incremental (lastModifiedDateTime) | Provides access to vendor ledger entries including document types, amounts in local and foreign currencies, posting dates, and balancing account information. |
reports_finance_vendors | Incremental (lastModifiedDateTime) |
Analytics API
About 100 further analytics_* streams (item, value, G/L, warehouse, job, manufacturing
and sales ledgers and lines) come from the Power BI Reports app. They are not
selected by default, and each is read in full every run. The extractor's default
selection leaves them out; add them with a select rule such as analytics_*.*.
Not extracted
Binary content (documents, pictures, attachments), endpoints that need a single parent record, and job queue and workflow configuration.
Settings
Tenant ID
Microsoft Entra tenant ID (GUID) or primary domain, from the overview page of your app registration.
Client ID
Application (client) ID of the Microsoft Entra app registration.
Client Secret
Client secret value of the Microsoft Entra app registration. The connection stops working when the secret expires.
Environment Name
Business Central environment name, as shown in the Business Central admin center (for example Production).
Company IDs
Companies to extract, by ID or name. Leave empty to extract every company in the environment.
Start Date
Earliest modification time to extract for incremental streams, in ISO-8601 format (for example 2026-01-01T00:00:00Z). Leave empty to extract all history.
Include Finance Reports API
Discover the Finance reports streams (customer, vendor and detailed ledger entries, G/L budgets, dimension set entries).
Include Analytics API
Discover the analytics streams from the Power BI Reports app. They are not selected by default.
Custom APIs
Extra API routes published by extensions, as a list of {publisher, group, version, stream_prefix}. Every entity of a route becomes a stream.
Web Services
OData web services published in Business Central (pages and queries that have no API), as a list of {name, replication_key}.
Emit Activate Version Messages
Emit ACTIVATE_VERSION for full-table streams, so that loaders that support it remove rows deleted in Business Central.
Page Size
Number of records requested per response.
Microsoft Dynamics 365 Business Central connector is available on Meltano. It is built, maintained, supported, and tested by Meltano.