> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloud.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SAP Analytics Cloud

> このページでは、[OData](/ja/API/OData-Dashboard) プロトコルを使用してSAP Analytics Cloud をConnect AI に接続する手順の概要を示します。これには、ワークスペースを使う必要があります。詳しくは、[Workspaces](/ja/Workspaces) ヘルプを参照してください。

## 前提条件

接続する前にまず以下を実行します。

* データソースをConnect AI アカウントに接続します。詳しくは、[Sources](/ja/Sources) を参照してください。
* [ワークスペース](/ja/Workspaces)を作成します。後の手順で、(*`https://cloud.cdata.com/api/odata/{workspace_name}`*) ページの**OData Service URL** と関連するワークスペース名を使用してコネクションを確立します。
* [Settings](/ja/Settings#personal-access-tokens) ページでPersonal Access Token (PAT) を生成します。PAT をコピーし、認証時にパスワードとして使用します。

## Connect AI への接続

OData プロトコルを使用してSAP Analytics Cloud からConnect AI へのコネクションを確立するには、以下の手順に従います。

<Steps>
  <Step>
    From the SAP Analytics Cloud dashboard, open the navigation menu and click **Connections**.

    <Frame>
      <img src="https://mintcdn.com/cdata/6pGFG61-t-b5cPZl/ja/images/sap_connections.png?fit=max&auto=format&n=6pGFG61-t-b5cPZl&q=85&s=f2b3ceb839841c1d1a5401456e37ae3a" alt="SAP Connections" width="360" height="463" data-path="ja/images/sap_connections.png" />
    </Frame>
  </Step>

  <Step>
    On the Connection page, click **Add Connection**.

    <Frame>
      <img src="https://mintcdn.com/cdata/6pGFG61-t-b5cPZl/ja/images/sap_addconnection.png?fit=max&auto=format&n=6pGFG61-t-b5cPZl&q=85&s=70c6e8376b2b0ed766064e58ce06cdd4" alt="SAP Add Connection" width="421" height="162" data-path="ja/images/sap_addconnection.png" />
    </Frame>
  </Step>

  <Step>
    In the **Select a data source** dialog, type *odata* into the search bar and select **OData Services**. You can also find it listed under the **Acquire Data** category without searching.
  </Step>

  <Step>
    Configure the connection:

    * Enter a **Connection Name** and, optionally, a **Description**.
    * **Data Service URL**—enter *[https://cloud.cdata.com/api/odata/\{workspace\_name}](https://cloud.cdata.com/api/odata/\{workspace_name})*
    * **Authentication Type**—select **Basic Authentication**.
    * **User Name**—Connect AI のユーザー名を入力します。ユーザー名は、Connect AI の画面の右上に表示されています。例：*[test@cdata.co.jp](mailto:test@cdata.co.jp)*
    * **Password**—[Settings](/ja/Settings#personal-access-tokens) ページで生成したPAT を入力します。

    <Frame>
      <img src="https://mintcdn.com/cdata/6pGFG61-t-b5cPZl/ja/images/sap_connectionfields.png?fit=max&auto=format&n=6pGFG61-t-b5cPZl&q=85&s=1f31a7c078246bf2e7eaed96f2cc482b" alt="SAP Connection Fields" width="829" height="1219" data-path="ja/images/sap_connectionfields.png" />
    </Frame>
  </Step>

  <Step>
    Click **Create** to save the connection.
  </Step>
</Steps>

## Query Your OData API

After establishing the connection to your Connect AI OData API, you can access it as a data source in SAP Analytics Cloud. Follow these steps to access it:

<Steps>
  <Step>
    In SAP Analytics Cloud, open the navigation menu and click **Datasets** or **Modeler**.
  </Step>

  <Step>
    In the **Create New** section, click **From a Data Source**.

    <Frame>
      <img src="https://mintcdn.com/cdata/6pGFG61-t-b5cPZl/ja/images/sap_createnew.png?fit=max&auto=format&n=6pGFG61-t-b5cPZl&q=85&s=7aa9a236f5ed7f41ef4c11ee078273e8" alt="SAP Create New" width="1275" height="484" data-path="ja/images/sap_createnew.png" />
    </Frame>
  </Step>

  <Step>
    In the **Select a data source** dialog, select **OData Services**.
  </Step>

  <Step>
    In the **Connection** drop-down menu, select the connection you created. If you are using the Modeler tab, select the **Create a new query** radio button.

    <Frame>
      <img src="https://mintcdn.com/cdata/6pGFG61-t-b5cPZl/ja/images/sap_selectsource.png?fit=max&auto=format&n=6pGFG61-t-b5cPZl&q=85&s=d1a93368289016b79c68e8c9b9a988d1" alt="SAP Select Source" width="829" height="387" data-path="ja/images/sap_selectsource.png" />
    </Frame>
  </Step>

  <Step>
    Click **Next** and build your query according to your needs.
  </Step>
</Steps>

For information about refreshing the data from your OData API, please see [this SAP Analytics Cloud help article](https://help.sap.com/viewer/00f68c2e08b941f081002fd3691d86a7/release/en-US/6aa6a99d4eb5467896c4fd47bc9c7642.html).
