Berner Setterwall5 min read

    Microsoft Dynamics 365 Business Central Is Live in Cogny: Your Books, Reachable by an Agent

    Business Central runs the accounting, sales and receivables of a large slice of the mid-market — and for a founder or a growth team, the truth about how the business is doing lives there, not in the ad dashboards. Until today none of that data was reachable from a Cogny agent. Now it is. Dynamics 365 Business Central is a live MCP integration, joining Fortnox as a finance/ERP source in the catalog.

    The connection is the one Business Central officially supports for server-to-server access: a Microsoft Entra app registration with a client secret, enabled inside Business Central with a least-privilege permission set. No developer account, no reverse-engineering of an unofficial API — this rides the same OData v2.0 endpoint Microsoft documents for Business Central.


    TL;DR

    • Business Central is live now. Connect it from your warehouse Settings → Integrations with an Entra app registration.
    • 14 tools covering companies, customers, contacts, sales orders/invoices/quotes, items, and the general ledger and accounts-receivable ledger entries.
    • Reads are unrestricted and answer $filter / $top / $select / $orderby, with automatic paging — an agent can ask for "invoices over 30 days past due" or "top customers by balance" directly.
    • Four writes, and only four: create_customer, update_customer, create_contact, update_contact. They change your ERP master data, so each shows you the exact change first and runs only when you call it again with confirm=true. No deletes and no posting/ledger writes in this first release.
    • Works from any MCP client on app.cogny.com/mcp, and from Bash via the Cogny CLI.
    • Included in Cogny Solo ($9/mo); bring your own agent and the standard MCP tools run under fair use.

    What you can do with it

    AreaWhat Claude can do
    CompaniesList the companies in the environment and use their ids as the scope for every other tool
    CustomersList and read customers — name, number, address, email, currency, payment terms, balance due
    ContactsList CRM contacts — name, job title, company, email, phone
    Sales documentsList sales orders, invoices and quotes with customer, dates, currency, status and totals
    ItemsList the item catalog — number, description, unit of measure, price
    FinanceList posted general ledger entries (debit/credit, account, posting date) and per-customer accounts-receivable ledger entries — what each customer owes

    In plain terms: "Which invoices are past due, and how much does our biggest customer owe us?" "Which customers make up our trailing-12-month revenue, and is that concentrated?" "What did we invoice last month in our base currency?" The answers come straight from Business Central's OData v2.0 API, not a CSV export.

    The write tools are deliberately narrow and are gated: create_customer and create_contact are not idempotent (each call makes another record), and the updates are idempotent PATCHes that only change the fields you supply and send If-Match: * for optimistic concurrency. Deletes, posting, and the shipAndInvoice bound action are intentionally left out of this first version — the sandbox builds a sales/finance assistant, not a back-office clerk.

    Why it matters for finance reporting

    Business Central holds the accounting system of record for many mid-market companies. The ledger tools bring that grounding to Cogny: list_general_ledger_entries feeds cost-side and margin analysis, and list_customer_ledger_entries powers an accounts-receivable / collections early-warning.

    How to connect it

    1. In the Microsoft Entra admin center, App registrations → New registration. Copy the Application (client) ID and the Directory (tenant) ID — you paste the tenant ID into Cogny later.
    2. Open Certificates & secrets → New client secret, and copy the value (shown only once).
    3. Open API permissions → Add a permission → Dynamics 365 Business Central → Application permissions → tick API.ReadWrite.All, then Grant admin consent. (Read-only use is still controlled by the permission set in Business Central below, since the Entra scope is ReadWrite.)
    4. In Business Central, search "Microsoft Entra applications" → New. Paste the Application (client) ID, set State = Enabled, and assign a least-privilege permission set — use a read-only set if you want Cogny to read only. SUPER cannot be assigned.
    5. In your warehouse Settings → Integrations, click Connect on the Business Central card and enter the client ID, the client secret, and the tenant ID + environment name (e.g. aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/production, where the environment is what the admin center calls it — usually production).

    The credentials are stored encrypted and scoped to the single workspace. Each call exchanges the client id/secret for a short-lived access token from Microsoft Entra (the OAuth2 client-credentials grant) and sends it as a bearer token to api.businesscentral.dynamics.com. The tenant/environment value is strictly validated so only Microsoft's two hosts — login.microsoftonline.com and api.businesscentral.dynamics.com — are ever contacted. Disconnect any time with one click, and remove or disable the app in Business Central to revoke access at the source.

    On trust

    Every tool carries MCP behavior annotations, so Cogny's UI and Claude.ai connectors know which of them read and which write. Reads are unrestricted. The four master-data writes change real ERP records, so each is confirm-gated: call it and it returns the exact method, URL and body it would send, and it makes no change until you call it again with confirm=true. Nothing is ever deleted, no documents are posted, and no amounts are moved — the ledger tools are read-only by design.


    If your books — or your client's — run on Business Central, this is the connector that puts your finance data on the same footing as the Fortnox shops in your portfolio. Connect it from your Cogny dashboard and ask your first question about what's owed and what's been sold.