Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Microsoft Dynamics 365

Microsoft Dynamics 365 uses oAuth Authentication

Connection Properties

Property
Default
Notes

Organization Url

—

Required. e.g. https://yourorg.crm.dynamics.com

API Version

9.2

Known values: 9.2, 9.1, 9.0, 8.2, 8.1, 8.0. Leave blank to auto-negotiate the highest the server supports.

API Version Negotiation

Fixed

How the API version is settled at connect time.

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 (default), AzureUSGovernment, AzureChinaCloud

Network

Proxy: Proxy Server, Proxy Port, Proxy User, Proxy Password, Proxy Exceptions (semicolon-separated bypass list), Proxy Auth Scheme (BASIC, DIGEST, NEGOTIATE, NTLM).

Firewall: Firewall Type (NONE, 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\Dynamics365_Debug.log


Property

Key (conn string)

Required?

Description

CRM URL

CrmUrl

Yes

Root URL of the Dynamics/Power Platform environment, e.g. https://myorg.crm.dynamics.com

Tenant Id

TenantId

Yes

Azure AD Tenant ID (GUID). Found in Azure Portal → Azure Active Directory → Overview.

OAuth Client Id

OAuthClientId

Yes

App Registration Client ID (GUID).

OAuth Client Secret

OAuthClientSecret

Yes

App Registration Client Secret value.

Auth Scheme

AuthScheme

No

ServicePrincipal (default) or OAuthRefreshToken.

API Version

ApiVersion

No

OData API version, e.g. 9.2 (default).

Azure AD Setup

● Register an App in Azure Portal → App Registrations.

● Grant Dynamics 365 → user_impersonation (Application permission) with admin consent.

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

Last updated