> For the complete documentation index, see [llms.txt](https://docs.appstrategy.com/apprules-r-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.appstrategy.com/apprules-r-documentation/platform/platform-features/system-settings/data-sources/connection-settings/crm/dynamicscrm.md).

# Microsoft Dynamics CRM

Connects to Microsoft Dynamics 365 / CRM via the OData Web API. This is the canonical connector — all others are modelled on its architecture.

### Connection Properties

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Property</td><td valign="top">Key (conn string)</td><td valign="top">Required?</td><td valign="top">Description</td></tr><tr><td valign="top">CRM URL</td><td valign="top">CrmUrl</td><td valign="top">Yes</td><td valign="top">Root URL of the Dynamics/Power Platform environment, e.g. https://myorg.crm.dynamics.com</td></tr><tr><td valign="top">Tenant Id</td><td valign="top">TenantId</td><td valign="top">Yes</td><td valign="top">Azure AD Tenant ID (GUID). Found in Azure Portal → Azure Active Directory → Overview.</td></tr><tr><td valign="top">OAuth Client Id</td><td valign="top">OAuthClientId</td><td valign="top">Yes</td><td valign="top">App Registration Client ID (GUID).</td></tr><tr><td valign="top">OAuth Client Secret</td><td valign="top">OAuthClientSecret</td><td valign="top">Yes</td><td valign="top">App Registration Client Secret value.</td></tr><tr><td valign="top">Auth Scheme</td><td valign="top">AuthScheme</td><td valign="top">No</td><td valign="top">ServicePrincipal (default) or OAuthRefreshToken.</td></tr><tr><td valign="top">API Version</td><td valign="top">ApiVersion</td><td valign="top">No</td><td valign="top">OData API version, e.g. 9.2 (default).</td></tr></tbody></table>

### Azure AD Setup

●        Register an App in Azure Portal → App Registrations.

●        Grant Dynamics CRM → user\_impersonation (Application permission) with admin consent.

●        In Dynamics CRM/365, create an Application User tied to the App Registration and assign a security role.

### Minimum Connection String

CrmUrl=<https://myorg.crm.dynamics.com;TenantId=\\><GUID>;OAuthClientId=\<GUID>;OAuthClientSecret=\<secret>

<br>

&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.appstrategy.com/apprules-r-documentation/platform/platform-features/system-settings/data-sources/connection-settings/crm/dynamicscrm.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
