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

# Dynamics 365

> Connect Ask Siro to Dynamics 365 Sales, Customer Service and other Dataverse apps through Microsoft's Dataverse MCP server.

Ask Siro connects to Dynamics 365 through Microsoft's **Dataverse MCP server**, which serves the data behind Dynamics 365 Sales, Customer Service, Field Service and other Power Platform apps. Each person signs in with their own Microsoft account, and Dataverse applies that person's security roles.

> ***Note:*** *MCP servers are in beta. Contact [support@siro.ai](mailto:support@siro.ai) to turn them on for your organization. This is separate from Siro's [Microsoft Dynamics integration](https://docs.siro.ai/Integrations/Microsoft_Dynamics.md), which syncs CRM data into Siro.*

## What Ask Siro can do

* **Read:** look up and query records such as accounts, contacts, opportunities, leads and cases, and describe tables and their columns.
* **Make changes:** create, update and delete records. Ask Siro asks the person to confirm every change first.

## Before you begin

* You need an admin who can register apps and grant tenant-wide consent in Microsoft Entra, and a **System Administrator** (or Power Platform admin) for the Dynamics 365 environment.
* Each person who connects needs a license that gives access to the environment (Dynamics 365 or Power Apps) and a security role in it.
* **Billing:** Microsoft may charge Copilot Credits for Dataverse MCP use from agents built outside Copilot Studio. People with qualifying Dynamics 365 Premium or Microsoft 365 Copilot licenses aren't charged for Dynamics 365 data. See Microsoft's [Dataverse MCP FAQ](https://learn.microsoft.com/en-us/power-apps/maker/data-platform/data-platform-mcp-faq).

## Step 1: Set up an app in Microsoft Entra

You can use the same app as for [Microsoft 365](https://docs.siro.ai/Integrations/MCP/Microsoft_365.md), or register a new one.

1. If you're registering a new app: in the [Microsoft Entra admin center](https://entra.microsoft.com), go to **App registrations → New registration**, choose **Accounts in this organizational directory only**, and set a **Web** redirect URI to the **Redirect URL** shown in Siro's **Add app** form. Then create a client secret under **Certificates & secrets** and copy its **Value** (not its Secret ID).
2. In the app, go to **API permissions → Add a permission → Dynamics CRM**, choose **Delegated permissions**, select **mcp.tools**, and click **Add permissions**.
3. Click **Grant admin consent for (your organization)**.

## Step 2: Allow the app in your Dynamics 365 environment

1. In the [Power Platform admin center](https://admin.powerplatform.microsoft.com), go to **Manage → Environments** and open your Dynamics 365 environment.
2. Note the **Environment URL** on its details page, for example `contoso.crm.dynamics.com`.
3. Go to **Settings → Product → Features**. Under **Dataverse Model Context Protocol**, make sure **Allow MCP clients to interact with Dataverse MCP server** is checked, and save if you changed it.
4. In the same section, open **Advanced Settings**. This opens the **Allowed MCP Clients** list. Click **New** and fill in:
   * **Name:** for example, Siro
   * **Unique Name:** must start with a publisher prefix, for example `new_siro`. A name without a prefix fails with "must start with a valid customization prefix".
   * **Application Id:** the app's **Application (client) ID** from step 1
   * **Is Enabled:** Yes
5. Click **Save**.

## Step 3: Add Dynamics 365 in Siro

1. Go to **Integrations → MCP connections → Add app** and choose **Dynamics 365**.
2. Enter the **MCP server URL**: `https://` + your environment URL + `/api/mcp`, for example `https://contoso.crm.dynamics.com/api/mcp`.
3. Enter the app's **Client ID**, **Client secret** (the Value) and your **Directory (tenant) ID**.
4. Click **Add app**. Then connect your own account under **Settings → Connected apps** and ask Ask Siro something like "List my open opportunities in Dynamics" to check that it works.

## Troubleshooting

| What you see | What to check |
| - | - |
| `AADSTS7000215: Invalid client secret` when connecting | You entered the secret's ID instead of its **Value**. Create a new secret, then remove Dynamics 365 in Siro and add it again with the Value. |
| Sign-in works but every request is refused | The app isn't on the environment's **Allowed MCP Clients** list, or **Is Enabled** is No. Repeat step 2. |
| Ask Siro finds no records you know exist | The person's security role in the environment doesn't include those records. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.