Prerequisites
In Dynamics CRM, create a custom OAuth application.Setup Guide
Follow these steps to connect Dynamics CRM to your Connect AI account:Enter the following information:
- CRM Version—the CRM version. Choose either CRM2011+ or CRMOnline from the drop-down list.
- URL—the root URL of the organization. The formatting of this URL depends on the version of CRM that you use.
- OAuth Client Id—the Application (client) Id from your OAuth application.
- OAuth Client Secret—the Client Secret from your OAuth application.
Click Sign in to connect securely through OAuth. This action opens the Dynamics CRM sign-in page in a new tab.
At the top of the Connect AI Add Connection page, click Save & Test.
- If the connection test succeeds, a Connection successfully saved message appears, indicating that your connection has been created. The Status on the Edit Connection page also changes to Authenticated. View the data model of your successful connection in the right pane of the Edit Connection page, in the Data Model tab.
- If the connection test fails, ensure that you entered your login information correctly with no stray spaces or other characters. Connect AI displays error messages under the required fields with missing data. Some data sources require that you sign in directly to the source website. If you did not, an error message appears under the Sign in button. Correct the errors and try again.
- Unsuccessful connections are saved as drafts and have a Status of Not Authenticated. You can return to the connection and authenticate it later.
Create a Custom OAuth Application
Follow these steps to create a custom OAuth Application in Dynamics CRM:Open your Azure portal and open the navigation pane. Select Azure Active Directory, then App Registrations.
Enter the following information:
- Name—a name for the application (for example, Connect AI).
- Supported account types—select Accounts in any organization directory.
- Redirect URI—select Web and enter https://oauth.cdata.com/oauth/
Select New Client Secret, set a duration, and save it. When the key value appears, copy it down to use when establishing the connection.
Select Dynamics CRM and choose Delegated permissions. Select user_impersonation in the permissions list.