メインコンテンツへスキップ

Prerequisites

In Dynamics CRM, create a custom OAuth application.

セットアップガイド

以下の手順で、Dynamics CRM をConnect AI アカウントに接続します。
1
Connect AI のダッシュボードからConnections ページを開きます。
2
右上の + Add Connection をクリックします。
3
検索フィールドに Dynamics CRM と入力し、データソース名をクリックします。
4
新しいコネクションのBasic Settings タブで、コネクション名を入力するかデフォルトの名前をそのまま使用します。
5
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.
6
OAuth でセキュアに接続するには、Sign in をクリックします。これにより、Dynamics CRM のサインインページが新しいタブで開かれます。
7
Dynamics CRM アカウントにログインし、リクエストされた権限を設定します(該当する場合)。
8
Connect AI Add Dynamics CRM Connection ページ上部の、Save & Test をクリックします。
  • 接続テストに成功すると、コネクションが作成されたことを示すConnection successfully saved というメッセージが表示されます。Edit Connection ページのStatusAuthenticated に変わります。Edit Connection ページの右ペインにあるData Model タブで、成功したコネクションのデータモデルを表示します。
  • 接続テストに失敗した場合は、入力したログイン情報に余分なスペースや文字がないかを確認してください。Connect AI は、データが不足している必須フィールドの下にエラーメッセージを表示します。一部のデータソースでは、ソースのWeb サイトに直接サインインする必要があります。サインインしていない場合は、Sign in ボタンの下にエラーメッセージが表示されます。エラーを修正し、もう一度試してください。
  • 失敗したコネクションは下書きとして保存され、StatusNot Authenticated になります。後でコネクションに戻って認証することができます。

Create a Custom OAuth Application

Follow these steps to create a custom OAuth Application in Dynamics CRM:
1
Open your Azure portal and open the navigation pane. Select Azure Active Directory, then App Registrations.
2
Click New Registration.
3
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/
4
Click Register to create the application.
5
In the application view, select Certificates & Secrets.
6
Select New Client Secret, set a duration, and save it. When the key value appears, copy it down to use when establishing the connection.
7
Select API permissions and click Add a permission.
8
Select Dynamics CRM and choose Delegated permissions. Select user_impersonation in the permissions list.
9
Click Add permissions to save your changes.
10
Select Overview and copy down the value for Application (client) ID.

詳細について

Connect AI とDynamics CRM の連携の詳細動作については、こちらのページを参照してください。