Microsoft Dynamics CRM – Setup

Introduction

Microsoft Dynamics CRM is a customer relationship management software package.

This guide explains how to set up Microsoft Dynamics CRM for use with Cyclr, as well as how to install a Microsoft Dynamics CRM Connector.

Setup & Authentication

Overview

The Microsoft Dynamics CRM Connector supports the following Authentication Types:

Which Authentication Type to use?

The Authentication Type to use depends on your use case and the setup of the system you’re connecting to.

This diagram should help you identify which is suitable:

Flowchart to help identify the correct Authentication Type to use when installing the Connector.

Obtain the Instance URL

For all Authentication Types, your customer will require their Instance URL by opening Microsoft Dynamics CRM in a web browser and making note of the fist part of the address. For on-premise installations that will include the organization name.

For example, depending on the instance’s configuration:

  • https://org1a2b3c.crm11.dynamics.com
  • https://orgname.contoso.com
  • https://crmserver/OrgName

“OAuth 2.0 Authorization Code” Authentication Type

Remote Setup in Microsoft Entra ID – performed by Cyclr Partner

You must register an app in Microsoft Entra ID:

  1. Set the Supported account types option to Multiple Entra ID tenants and select Allow all tenants.
  2. Set the Redirect URI to your Cyclr Partner Console’s Callback URL, with Select a platform set to “Web”.
  3. Select Manage > API permissions > + Add a permission and add the user_impersonation delegated Dynamics CRM permission.
  4. Make a note of the Application (client) ID value.
  5. Create a client secret and make a note of its value.

For more details, see Microsoft’s guide on how to register an app.

Partner Setup in Cyclr Console

Having registered an app in Microsoft Entra ID to obtain a client ID and a client secret, go into your Cyclr Partner Console:

  1. Go to Connector Library > Application Connectors.
  2. Use the search box to locate the Microsoft Dynamics CRM Connector entry.
  3. Select the Pencil button.
  4. Select the Settings tab.
  5. Enter the following values:
PropertyDescription
Client IDThe Application (client) ID value of your Microsoft Entra ID app.
Client SecretThe client secret value of your Microsoft Entra ID app.
  1. Select Save Changes.

If you leave these values blank, they must be provided each time the Connector is installed.

Cyclr Connector Installation

When installing a Microsoft Dynamics CRM Connector using the OAuth 2.0 Authorization Code Authentication, the following value is required:

PropertyDescription
Instance URLThe URL of the Microsoft Dynamics CRM instance including the scheme.
For example:
https://example.crm.dynamics.com

After providing the above, the user will be taken to a Microsoft login page to sign in and give consent for their data to be accessed.

“OAuth 2.0 Client Credentials” Authentication Type

Remote Setup in Microsoft Entra ID – performed by your customer

Your customer must register an app in Microsoft Entra ID:

  1. Set the Supported account types option to Single tenant only.
  2. No Redirect URI is required.
  3. Make a note of the Application (client) ID and Directory (tenant) ID values.
  4. Create a client secret and make a note of its value.

For more details, see Microsoft’s guide on how to register an app.

Remote Setup in Microsoft’s Power Platform admin center – performed by your customer

Your customer must create an app user for the app registered in Microsoft Entra ID in the Power Platform admin centre:

  1. Select Manage > Environments and select the target environment.
  2. Select Settings > Users + permissions > Application users > + New app user.
  3. Select + Add an app, select the app registered in Microsoft Entra ID, and then select Add.
  4. Select a Business unit.
  5. Under Security roles, select the edit (pencil) icon and add a security role that can read and write the tables your Cyclr integration will use, then select Save.
  6. Select Create.

For more details, see Microsoft’s guide on how to create an app user.

Cyclr Connector Installation

When installing a Microsoft Dynamics CRM Connector using the OAuth 2.0 Client Credentials Authentication, the following values are used:

PropertyDescription
Client IDThe Application (client) ID value of the Microsoft Entra ID app.
Client SecretThe client secret value of the Microsoft Entra ID app.
Instance URLThe URL of the Microsoft Dynamics CRM instance including the scheme.
For example:
https://example.crm.dynamics.com
Tenant IDThe tenant ID of the Microsoft Entra ID app.

Values such as common or organizations are not supported.

“AD FS” Authentication Type

Remote Setup in AD FS – performed by your customer

Your customer needs the URL of their AD FS sign-in endpoint and an account that can sign in to Microsoft Dynamics CRM through AD FS.

Forms authentication must be enabled on AD FS, and the account cannot require multi-factor authentication.

Cyclr Connector Installation

When installing a Microsoft Dynamics CRM Connector using AD FS Authentication, the following values are used:

PropertyDescription
Instance URLThe URL of your Microsoft Dynamics CRM instance including the scheme.
For example:
https://example.crm.dynamics.com
AD FS UsernameThe user’s account for AD FS authentication.
Usually in User Principal Name (UPN) format (e.g. user@your-company.com) or DOMAIN\user format.
AD FS PasswordThe password for the specified user.
AD FS Sign-in URLThe URL to the organization’s AD FS sign-in endpoint including the scheme.

“AD FS OAuth 2.0 Password Credentials” Authentication Type

Remote Setup in AD FS – performed by your customer

In AD FS Management, your customer must create an Application Group with a Server application, generate a shared secret, and give it access to the Dynamics relying party trust.

No redirect URI needs to be set.

The Username and Password of the Dynamics account to be used cannot require multi-factor authentication.

Cyclr Connector Installation

When installing a Microsoft Dynamics CRM Connector using AD FS OAuth 2.0 Password Credentials Authentication, the following values are used:

PropertyDescription
Client IDThe client ID to authenticate with.
Client SecretThe client secret to authenticate with.
UsernameThe username to authenticate with.
PasswordThe password to authenticate with.
AD FS URLThe URL of your organization’s AD FS server including the scheme.
For example:
https://adfs.example.com/adfs
Instance URLThe URL of your Microsoft Dynamics CRM instance including the scheme.
For example:
https://example.crm.dynamics.com
AD FS ResourceThe resource identifier configured for this application in AD FS (the relying party trust identifier), used to scope the requested token.

“AD FS OAuth 2.0 Authorization Code” Authentication Type

Remote Setup in AD FS – performed by your customer

In AD FS Management, your customer must create an Application Group with a Server application and set the redirect URI to your Cyclr Partner Console’s Callback URL, which you must provide them.

They also generate a shared secret and give the application access to the Dynamics relying party trust.

Cyclr Connector Installation

When installing a Microsoft Dynamics CRM Connector using AD FS OAuth 2.0 Authorization Code Authentication, the following values are used:

PropertyDescription
Client IDThe client ID to authenticate with.
Client SecretThe client secret to authenticate with.
AD FS URLThe URL of your organization’s AD FS server including the scheme.
For example:
https://adfs.example.com/adfs
Instance URLThe URL of your Microsoft Dynamics CRM instance including the scheme.
For example:
https://example.crm.dynamics.com
AD FS ResourceThe resource identifier configured for this application in AD FS (the relying party trust identifier), used to scope the requested token.

“Kerberos” Authentication Type

Remote Setup in Microsoft Dynamics CRM – performed by your customer

Your customer needs a domain account that can sign in to Microsoft Dynamics CRM.

Cyclr Connector Installation

When installing a Microsoft Dynamics CRM Connector using Kerberos Authentication, the following values are used:

PropertyDescription
UsernameThe username to authenticate with.
PasswordThe password to authenticate with.
Instance URLThe URL of the Microsoft Dynamics CRM instance including the scheme.
For example:
https://example.crm.dynamics.com

Authentication Errors

For information on possible authentication errors, see this section of the Additional Information page.