> ## Documentation Index
> Fetch the complete documentation index at: https://docs.duvo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Dynamics 365 Business Central

Dynamics 365 Business Central is a cloud ERP system by Microsoft for small and mid-sized businesses, covering finance, sales, purchasing, and inventory. Connecting it to Duvo lets your agents access financial records, customer and vendor data, and operational information directly from your Business Central environment.

## Setup

<Steps>
  <Step title="Confirm prerequisites" icon="circle-check">
    <Check>A Microsoft Entra ID (formerly Azure AD) app registration with the **Dynamics 365 Business Central** API permission (`API.ReadWrite.All`) and admin consent granted.</Check>
    <Check>Access to the Azure portal to retrieve the Tenant ID, Client ID, and generate a Client Secret for the app registration.</Check>
    <Check>The app registration must be added in Business Central under **Microsoft Entra applications** with **State** set to **Enabled** and the appropriate **User Permission Sets** assigned (for example, `D365 READ` for read-only access or `D365 BUS FULL ACCESS` for broader operations).</Check>
    <Check>A Business Central environment (production or sandbox) that the app registration can access.</Check>

    <Tip>
      New to Entra ID app registrations? Follow [Microsoft's app registration quickstart](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app) to register the app and generate a client secret.
    </Tip>
  </Step>

  <Step title="Grant the required permissions" icon="key">
    The Entra ID app registration must have:

    * The **Dynamics 365 Business Central** API permission `API.ReadWrite.All` with admin consent granted.
    * Registration inside Business Central under **Microsoft Entra applications** with appropriate permission sets assigned. The permission sets control which data the app can access (customers, vendors, companies).

    <Warning>
      The permission sets assigned inside Business Central determine exactly what data the agent can reach. Assign only the sets the agent needs — for example, `D365 READ` for read-only access rather than `D365 BUS FULL ACCESS`.
    </Warning>
  </Step>

  <Step title="Add the connection in Duvo" icon="plug">
    On the [Connections page](https://app.duvo.ai/integrations), open Dynamics 365 Business Central and fill in these fields:

    <ParamField body="Tenant ID" type="string" required>
      Your Microsoft Entra ID (Azure AD) tenant GUID. Find it in the Azure portal under **Microsoft Entra ID > Overview** or **App registrations**.
    </ParamField>

    <ParamField body="Client ID" type="string" required>
      The Application (client) ID from your Entra ID app registration that has Business Central API permissions.
    </ParamField>

    <ParamField body="Client Secret" type="string" required>
      A client secret generated for the app registration. Found under **Certificates & secrets** in the Azure portal.
    </ParamField>

    <ParamField body="Environment" type="string">
      The Business Central environment name to connect to. Defaults to `production` if left blank.
    </ParamField>

    <ParamField body="Company ID" type="string">
      The GUID of the specific Business Central company to use. Leave blank to auto-select when only one company exists.
    </ParamField>
  </Step>
</Steps>

<AccordionGroup>
  <Accordion title="Third-party documentation" icon="book">
    * [Register an application in Microsoft Entra ID](https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-develop-connect-apps#register-your-application-in-azure-ad) — creating the app registration and granting Business Central API permissions.
    * [Set up Microsoft Entra applications in Business Central](https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/automation-apis-using-s2s-authentication) — registering the app inside Business Central and assigning permission sets.
    * [Business Central API overview](https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/) — available API endpoints and entity reference.
    * [Entra ID app registration quickstart](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app) — general guide to registering apps and generating client secrets.
  </Accordion>
</AccordionGroup>

## Capabilities

* **Query customers and vendors** — retrieve contact details, payment terms, balances, and aging data for customers and vendors, with filtering, sorting, and pagination.
* **Look up full partner details** — get comprehensive information for a specific customer or vendor, including financial details, aging buckets, dimensions, and contact persons.
* **Search across business partners** — run cross-entity searches across both customers and vendors to find the right records quickly.
* **Discover companies** — list all companies available in your Business Central environment to identify the right data scope.

## Key Benefits

* **Direct ERP access** — agents read from Business Central in real time instead of relying on manual data exports or screen-by-screen navigation.
* **Secure credential handling** — Azure AD client credentials are encrypted at rest and never exposed in logs or API responses.
* **Flexible scoping** — target a specific environment and company, or let the connection auto-select when your tenant has a single company.
* **Finance-ready data** — pull customer balances, vendor records, and company information for reconciliation, reporting, and compliance workflows.

## Works Well With

<CardGroup cols={3}>
  <Card title="Google Sheets" icon="https://mintcdn.com/duvo-d8027998/O3tlM6eCuFk2uJpN/images/connections/google-sheets.svg?fit=max&auto=format&n=O3tlM6eCuFk2uJpN&q=85&s=0ef8d55e05c34e7a4a618933bdf0ceb3" href="/user-guide/connections/available-connections/google-sheets" width="24" height="24" data-path="images/connections/google-sheets.svg">
    Pull Business Central customer or vendor data into spreadsheets for financial analysis, reconciliation, or reporting.
  </Card>

  <Card title="Microsoft Excel" icon="https://mintcdn.com/duvo-d8027998/O3tlM6eCuFk2uJpN/images/connections/excel.svg?fit=max&auto=format&n=O3tlM6eCuFk2uJpN&q=85&s=986599d60d09acee47293fda2b62df99" href="/user-guide/connections/available-connections/microsoft-excel" width="2290" height="2130" data-path="images/connections/excel.svg">
    Pull Business Central customer or vendor data into spreadsheets for financial analysis, reconciliation, or reporting.
  </Card>

  <Card title="Gmail" icon="https://mintcdn.com/duvo-d8027998/O3tlM6eCuFk2uJpN/images/connections/gmail.svg?fit=max&auto=format&n=O3tlM6eCuFk2uJpN&q=85&s=ad4e229283f3fe2f26c0f96a49f28e13" href="/user-guide/connections/available-connections/gmail" width="88" height="66" data-path="images/connections/gmail.svg">
    Pull customer or vendor details and include them in automated notification or follow-up emails.
  </Card>

  <Card title="Microsoft Outlook" icon="https://mintcdn.com/duvo-d8027998/O3tlM6eCuFk2uJpN/images/connections/outlook.svg?fit=max&auto=format&n=O3tlM6eCuFk2uJpN&q=85&s=e29aeb65c8cffce1cd3c83b81289b71f" href="/user-guide/connections/available-connections/microsoft-outlook" width="1831" height="1703" data-path="images/connections/outlook.svg">
    Pull customer or vendor details and include them in automated notification or follow-up emails.
  </Card>

  <Card title="Slack" icon="https://mintcdn.com/duvo-d8027998/O3tlM6eCuFk2uJpN/images/connections/slack.svg?fit=max&auto=format&n=O3tlM6eCuFk2uJpN&q=85&s=8a64bdd1af39e903923e4a273b4a4618" href="/user-guide/connections/available-connections/slack" width="512" height="512" data-path="images/connections/slack.svg">
    Post payment alerts, vendor updates, or financial summaries to the relevant business channels.
  </Card>

  <Card title="Microsoft Teams" icon="https://mintcdn.com/duvo-d8027998/O3tlM6eCuFk2uJpN/images/connections/teams.svg?fit=max&auto=format&n=O3tlM6eCuFk2uJpN&q=85&s=6402a90678b560d0b0a4fc3b02c0d3e0" href="/user-guide/connections/available-connections/microsoft-teams" width="2229" height="2073" data-path="images/connections/teams.svg">
    Post payment alerts, vendor updates, or financial summaries to the relevant business channels.
  </Card>
</CardGroup>
