---
title: "エンドポイントの設定"
slug: "configure-an-endpoint"
abstract: "Dynamics 365 for SalesコネクタMicrosoft Sitecore Connectのエンドポイントを設定する方法"
---
# エンドポイントの設定

エンドポイントを使ってデータソースを読み込み、またはデータターゲットを書き込むのです。Connect Microsoft Dynamics 365 for Salesでは、エンドポイントをSitecoreとMicrosoft Dynamicsインスタンスとして表現します。

SitecoreとMicrosoft Dynamics間の接続を設定するには、以下のエンドポイントを設定する必要があります:

-   [Dynamics Organization endpoint](https://doc.sitecore.com/xp/ja/developers/dynamics-crm-connect/70/sitecore-connect-for-microsoft-dynamics-365-for-sales/configure-an-endpoint.html#UUID-a9dea304-c39a-013f-8fe6-df002ec635f0_section-5d5ff83d785cd-idm45594579663248 "Configure the Dynamics Organization endpoint")
-   [xConnectクライアントエンドポイント](https://doc.sitecore.com/xp/ja/developers/dynamics-crm-connect/70/sitecore-connect-for-microsoft-dynamics-365-for-sales/configure-an-endpoint.html#UUID-a9dea304-c39a-013f-8fe6-df002ec635f0_section-5d5ff83d785cd-idm45594579663248 "Configure the Dynamics Organization endpoint")
-   [xDB Reference Data Clientエンドポイント](https://doc.sitecore.com/xp/ja/developers/dynamics-crm-connect/70/sitecore-connect-for-microsoft-dynamics-365-for-sales/configure-an-endpoint.html#UUID-a9dea304-c39a-013f-8fe6-df002ec635f0_section-5d5ff83d785cd-idm45594579663248 "Configure the Dynamics Organization endpoint")
-   [ステージングデータベースエンドポイント](https://doc.sitecore.com/xp/ja/developers/dynamics-crm-connect/70/sitecore-connect-for-microsoft-dynamics-365-for-sales/configure-an-endpoint.html#UUID-a9dea304-c39a-013f-8fe6-df002ec635f0_section-5d5ff83d785cd-idm45594579663248 "Configure the Dynamics Organization endpoint")

## Dynamics Organizationエンドポイントの設定

Dynamics Organizationエンドポイントの設定:

1.  コンテンツエディターで、例えばテナントを選択してください。 *My Dynamics Tenant*。
    
2.  Endpoints/Providers/Dynamics/Dynamics Organization Endpointへナビゲート。
    
3.  **接続文字列名**フィールドに、追加した接続文字列の名前を入力し[てください。](https://doc.sitecore.com/xp/ja/developers/dynamics-crm-connect/70/sitecore-connect-for-microsoft-dynamics-365-for-sales/add-a-connection-string-for-microsoft-dynamics.html "Add a connection string for Microsoft Dynamics")
    
    ![The settings dialog with the connection string name input field](<https://doc.sitecore.com/api/markdown-image/xp/ja/developers/dynamics-crm-connect/70/sitecore-connect-for-microsoft-dynamics-365-for-sales/images/settings%20for%20connection%20string%20name.png>)
    
    > !注Sitecoreサーバーで定義されていない接続文字列を入力すると、検証エラーが表示されます。
    > 
    > ![The settings dialog with the connection string name input field showing a validation error](<https://doc.sitecore.com/api/markdown-image/xp/ja/developers/dynamics-crm-connect/70/sitecore-connect-for-microsoft-dynamics-365-for-sales/images/connection%20string%20name%20validation%20error.png>)
    
4.  アイテムを保存し、リボンの上で **「トラブルシューティング**を実行する」をクリックします。
    
    ![The Run Troubleshooter button on the menu ribbon](<https://doc.sitecore.com/api/markdown-image/xp/ja/developers/dynamics-crm-connect/70/sitecore-connect-for-microsoft-dynamics-365-for-sales/images/run%20troubleshooter%20button.png>)
    
5.  Dynamicsインスタンスへの接続が確立可能かどうかを示すメッセージが表示されます。 **OK**をクリックしてメッセージを閉じます。
    

## xConnect Clientエンドポイントの設定

xConnectクライアントエンドポイントの設定:

1.  コンテンツエディターでテナントを選択します。
    
2.  Endpoints/Providers/xConnect/xConnect Client Endpointへナビゲート。
    
3.  **コレクションサービス**セクションで、以下の項目の値を入力してください:
    
    -   コレクションサービス接続文字列名
    -   コレクションサービス証明書接続文字列名
    -   コレクションサービス認証情報接続文字列名
    
    ![The collection service section with the connection string input fields](<https://doc.sitecore.com/api/markdown-image/xp/ja/developers/dynamics-crm-connect/70/sitecore-connect-for-microsoft-dynamics-365-for-sales/images/settings%20for%20collection%20service.png>)
    
    これらの値はSitecoreサーバーのConnectionStrings.configファイル内で接続文字列名として見つけることができます。
    
    > !注XP0の単一展開では「すべてのサービスにコレクションサービスを使う」を選択できます。XP1スケール展開では、各サービスごとに異なる接続文字列を使用する必要があります。
    
    以下の表は **、コレクションサービス** セクションのフィールドを説明しています:
    
    フィールド名
    
    必要に応じて
    
    概要
    
    コレクションサービス接続文字列名
    
    常に必要です
    
    -   xConnectコレクションサービスを識別する接続文字列
    -   *デフォルトでは、値はxconnect.collectionです*
    
    コレクションサービス証明書接続文字列名
    
    xConnectサーバーでSSLが有効の場合、必須です。
    
    -   xConnectサーバーへの安全な接続を確立する際に使用する証明書を識別する接続文字列。
    -   デフォルトでは *値がxconnect.collection.certificate*です。
    
    コレクションサービス認証情報接続文字列名
    
    xConnectサーバーで認証が有効の場合に必要です。
    
    -   認証が有効なxConnectサーバーに接続するための認証情報を指定する接続文字列。
    -   xConnectサーバーでは認証がデフォルトで有効になっていません。
    
4.  xConnectサーバーがSSL用の自己署名証明書を使用している場合は、「 **無効な証明書を許可** 」チェックボックスを選択して保存してください。
    
    ![Allow invalid certificates check box](<https://doc.sitecore.com/api/markdown-image/xp/ja/developers/dynamics-crm-connect/70/sitecore-connect-for-microsoft-dynamics-365-for-sales/images/allow%20invalid%20certificates%20checkbox.png>)
    
5.  リボンの上で **「トラブルシューティングを実行する**」をクリックしてください。xConnectサーバーへの接続が確立できるかどうかを示すメッセージが表示されます。 **「OK** 」をクリックしてメッセージを閉じます。
    

## xDB参照データクライアントエンドポイントの設定

xDB参照データクライアントエンドポイントを設定するには:

1.  コンテンツエディターでテナントを選択します。
    
2.  Endpoints/Providers/xConnect/xDB Reference Data Client Endpointへナビゲート。
    
3.  **設定**セクションで、以下のフィールドの値を入力してください:
    
    -   クライアント接続文字列
    -   クライアント証明書接続文字列名
    
    ![xDB Reference Data Client Endpoint settings](https://doc.sitecore.com/api/markdown-image/xp/ja/developers/dynamics-crm-connect/70/sitecore-connect-for-microsoft-dynamics-365-for-sales/images/xDB_Reference_Data_Client_Endpoint_-_Settings_3_0.png)
    
    以下の表は **設定** セクションのフィールドを説明します。
    
    フィールド名
    
    必要に応じて
    
    概要
    
    クライアント接続文字列名
    
    いつも
    
    xDB参照データクライアントの設定を特定します。  
      
    デフォルトでは、値は空欄です。
    
    クライアント証明書接続文字列名
    
    xConnectサーバーでSSLが有効になっている場合
    
    xDB参照データサーバーへの安全な接続に使用する証明書を特定します。  
      
    デフォルトでは、値は空欄です。
    
4.  xDB参照データクライアントサーバーがSSL用の自己署名証明書を使用している場合は、「 **無効な証明書を許可** 」チェックボックスを選択してください。
    
5.  アイテムを保存してください。
    
6.  リボンで **「トラブルシューティングを実行する**」を選択します。xDB参照データクライアントサーバーへの接続が確立可能かどうかを示すメッセージが表示されます。 **「OK** 」をクリックしてメッセージを閉じます。
    

## ステージングデータベースエンドポイントの設定

ステージングデータベースエンドポイントの設定:

1.  コンテンツエディターでテナントを選択します。
    
2.  Endpoints/Providers/SQL/Staging Databaseへナビゲート。
    
3.  **設定**セクションの以下のフィールドで、Sitecoreサーバーに追加したステージングデータベースの接続文字列と一致する値を入力してください:
    
    -   接続文字列名
    -   データベースの種類
    
    ![The settings dialog with the connection string name input field](<https://doc.sitecore.com/api/markdown-image/xp/ja/developers/dynamics-crm-connect/70/sitecore-connect-for-microsoft-dynamics-365-for-sales/images/settings%20for%20connection%20string%20and%20database%20type.png>)
    
4.  リボンの上で **「トラブルシューティングを実行する**」をクリックしてください。ステージングデータベースへの接続が確立できるかどうかを示すメッセージが表示されます。 **「OK** 」をクリックしてメッセージを閉じます。