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

Microsoft Dynamics 365 コネクタを追加

Microsoft Dynamics 365 への認証

After you add the connector, you need to set the required properties. Organizational URL: Enter the URL to your Microsoft Dynamics 365 organization (for example, https://orgcb42e1d0.crm.dynamics.com). CData Sync supports authenticating to Microsoft Dynamics 365 in several ways. Select your authentication method below to proceed to the relevant section that contains the authentication details.

Azure Active Directory

Azure Managed Service Identity

Azure Service Principal

Azure サービスプリンシパルとクライアントシークレットで接続するには、次のプロパティを設定します:

  • Auth Scheme:AzureServicePrincipal を選択。
  • Azure Tenant:接続するMicrosoft Online テナントを入力。
  • OAuth Client Id:OAuth 認証サーバーにアプリケーションを登録した際に割り当てられたクライアントId を入力。
  • OAuth Client Secret:OAuth 認証サーバーにアプリケーションを登録した際に割り当てられたクライアントシークレットを入力。

アプリケーションのOAuth クライアントId およびクライアントシークレットを取得するには:

  1. Azure ポータルにログインします。
  2. 左ナビゲーションペインですべてのサービスを選択します。次にアプリの登録を検索し選択します。
  3. 新規登録をクリックします。
  4. アプリケーションの名前を入力して任意のAzure AD ディレクトリ - マルチテナントを選択します。
  5. アプリケーションを作成したら、概要セクションに表示されるアプリケーション (クライアント) ID の値をコピーします。この値をOAuth クライアントId として使用します。
  6. 証明書とシークレットセクションに移動して、アプリケーションの新しいクライアント シークレットを選択します。
  7. 有効期間を指定してクライアントシークレットを保存します。保存するとキーの値が表示されます。
  8. 値は一度しか表示されないので、コピーしておきます。この値をOAuth クライアントシークレットとして使用します。
  9. 認証タブで、必ずアクセストークン (暗黙的なフローに使用) を選択します。

Azure Service Principal Certificate

Azure サービスプリンシパルとクライアント証明書で接続するには、次のプロパティを設定します:

  • Auth Scheme:AzureServicePrincipalCert を選択。
  • Azure Tenant:接続するMicrosoft Online テナントを入力。
  • OAuth Client Id:OAuth 認証サーバーにアプリケーションを登録した際に割り当てられたクライアントId を入力。
  • OAuth JWT Cert:Java web token(JWT)証明書ストアを入力。
  • OAuth JWT Cert Type:JWT 証明書を格納するキーストアの種類を入力。デフォルトの種類はPEMKEY_BLOB です。
  • (オプション)OAuth JWT Cert Password:OAuth JWT 証明書のパスワードを入力。
  • (オプション)OAuth JWT Cert Subject:OAuth JWT 証明書のサブジェクトを入力。

アプリケーションのOAuth 証明書を取得するには:

  1. Azure ポータルにログインします。
  2. 左ナビゲーションペインですべてのサービスを選択します。次にアプリの登録を検索し選択します。
  3. 新規登録をクリックします。
  4. アプリケーションの名前を入力して任意のAzure AD ディレクトリ - マルチテナントを選択します。
  5. アプリケーションを作成したら、概要セクションに表示されるアプリケーション (クライアント) ID の値をコピーします。この値をOAuth クライアントId として使用します。
  6. 証明書とシークレットセクションに移動して、証明書のアップロードを選択します。次に、ローカルマシンからアップロードする証明書を選択します。
  7. 有効期間を指定してクライアントシークレットを保存します。保存するとキーの値が表示されます。
  8. 値は一度しか表示されないので、コピーしておきます。この値をOAuth クライアントシークレットとして使用します。
  9. 認証タブで、必ずアクセストークン (暗黙的なフローに使用) を選択します。

接続を完了する

To complete your connection:
  1. For Edition, select the edition for your version of Microsoft Dynamics 365.
    • CustomerService
    • FieldService
    • FinOpsOnline (default)
    • FinOpsOnPremise: For this edition, you also must specify a value for ADFS Server. Enter the name of the server that you use to authenticate.
    • HumanResources
    • Marketing
    • ProjectOperations
    • Sales
    • Commerce
    The FinOpsOnline and FinOpsOnPremise editions apply to finance and operations as well as to supply-chain management.
  2. Define advanced connection settings on the Advanced tab. (In most cases, though, you should not need these settings.)
  3. Connect to Microsoft Dynamics 365 to connect to your Microsoft Dynamics 365 account.
  4. Click Create & Test to create your connection.

Configure Change Tracking

For Microsoft Dynamics 365, you can set change tracking in Microsoft Power Apps. To set change tracking:
  1. Open the Power Apps application and click Tables. Then, click the table for which you want to set change tracking.
  2. Select Properties > Advanced options.
  3. Scroll to the list under this paragraph: Refine how data in this table is used and managed. Options marked with ¹ can’t be turned off if enabled.
  4. Select Track changes to enable change tracking for your table.
    You cannot disable this option after you enable it (according to the paragraph shown in step 3) because the Track changes option is marked with the superscript (1).
    Change tracking is available only through the API for the CRM editions of Microsoft Dynamics 365. That means the FinOpsOnline, FinOpsOnPremise, and HumanResources editions do not support change tracking.

詳細について