Dynamics CRM Connection

The Dynamics CRM Connection allows you to connect to a Dynamics CRM 2011/2013/2015. So far there’s only one setting to do – the connectionstring.

The most important connectionstring-examples:

On-Premise Integrated Security
Url=http://crm.contoso.com/xrmContoso;

Active Directory Authentication
Url=http://crm.contoso.com/xrmContoso; Domain=CONTOSO; Username=jsmith; Password=passcode;

Dynamics 365 Named Account
AuthType=Office365;Username=jsmith@contoso.onmicrosoft.com; Password=passcode;Url=https://contoso.crm.dynamics.com

Dynamics 365 OAuth
AuthType=OAuth;Username=jsmith@contoso.onmicrosoft.com;Password=passcode;Url=https://contosotest.crm.dynamics.com;AppId=;RedirectUri=app://;TokenCacheStorePath=c:\MyTokenCache;LoginPrompt=Auto

Dynamics 365 OAuth Named Account
AuthType=OAuth;Username=jsmith@contoso.onmicrosoft.com;Password=passcode;Url=https://contoso:8080/Test;AppId=;RedirectUri=app://;TokenCacheStorePath=c:\MyTokenCache;LoginPrompt=Auto

There are some more settings you could apply on the connectionstrings. You can find the full list of features on the Dynamics CRM Connectionstrings-article on MSDN.