> 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

#### Server

| Property         | Default | Notes                                             |
| ---------------- | ------- | ------------------------------------------------- |
| Organization Url | —       | Required. e.g. `https://yourorg.crm.dynamics.com` |
| API Version      | `9.2`   | Web API version                                   |
| Timeout          | `60`    | Connection timeout, seconds                       |

#### Authentication

**Auth Scheme** selects the mechanism: `AzureAD` (default), `AzureServicePrincipal`, `AzureServicePrincipalCert`, `AzureMSI`, `NTLM`, or `AccessToken`.

| Property                 | Used by                    | Notes                                     |
| ------------------------ | -------------------------- | ----------------------------------------- |
| OAuth Client Id          | AzureAD, service principal | Azure AD application (client) ID          |
| OAuth Client Secret      | AzureServicePrincipal      | Application client secret                 |
| Tenant Id                | AzureAD, service principal | Azure AD tenant ID                        |
| OAuth Callback URL       | AzureAD                    | Default `http://localhost:33333`          |
| OAuth Access Token       | AccessToken                | Pre-obtained token                        |
| OAuth Refresh Token      | AzureAD                    | Used for token renewal                    |
| Certificate Thumbprint   | AzureServicePrincipalCert  | Certificate in the store                  |
| Certificate Path         | AzureServicePrincipalCert  | Path to a `.pfx`                          |
| Certificate Password     | AzureServicePrincipalCert  | Password for the `.pfx`                   |
| User / Password / Domain | NTLM                       | On-premises deployments                   |
| Azure Environment        | `AzureCloud`               | Or `AzureUSGovernment`, `AzureChinaCloud` |

#### Network

Proxy: **Proxy Auto Detect** (default `true`), **Proxy Server**, **Proxy Port**, **Proxy User**, **Proxy Password**, **Proxy Exceptions** (semicolon-separated bypass list), **Proxy Auth Scheme** (`BASIC` default, `DIGEST`, `NEGOTIATE`, `NTLM`).

Firewall: **Firewall Type** (`NONE` default, `TUNNEL`, `SOCKS4`, `SOCKS5`, `HTTP`), **Firewall Server**, **Firewall Port**, **Firewall User**, **Firewall Password**.

**SSL Server Cert** — `*` to accept any certificate, or a specific thumbprint.

#### Logging

| Property  | Default                                                                          | Notes                         |
| --------- | -------------------------------------------------------------------------------- | ----------------------------- |
| Log Level | `0`                                                                              | `0` disabled, `1` log to file |
| Log File  | `%APPDATA%\appStrategy\PortalData\Default\Logs\Connectors\DynamicsCRM_Debug.log` |                               |

<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.
