To set up the Microsoft Dynamics CRM endpoint, you need to have an account and create or already have an app. Also, to authenticate with OAuth 2, you need to know the Client ID and keys for the app. If you use custom authentication when you provision an element, you do not need the Client ID and keys for the app. Dynamics versions 2013-2015 are supported by the MS Dynamics 2015 SDK.
Note: Microsoft provides the most up-to-date and detailed setup instructions at Microsoft Dynamics 365 Web API.
To create an app and acquire OAuth information:
Navigate to the Admin Center, expand Admin Centers, and then click Azure AD.
Select your directory, and then click Applications.
Select your application from the list, or create a new application (click in the page footer).
Complete the configuration, paying close attention to the following for OAuth authentication:
oauth.api.secret
.oauth.api.key
.Note: The key value for OAuth Client Secret in Azure AD appears only after you save the configuration and only one time. You will not be able to retrieve the key value later, so capture it immediately after you save.
Click in the page footer.
Go to the keys section and capture the key value for OAuth Client Secret in Azure AD.
Next authenticate an element instance with Microsoft Dynamics CRM.