> ## 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

> This page outlines the steps to connect SAP Analytics Cloud to Connect AI using the [OData](/en/API/OData-Dashboard) protocol. This requires the use of workspaces. See the [Workspaces](/en/Workspaces) documentation for more information.

## Prerequisites

Before you connect, you must first do the following:

* Connect a data source to your Connect AI account. See [Sources](/en/Sources) for more information.
* Create a [Workspace](/en/Workspaces). Later, you will use the **OData Service URL** on that page (*[https://cloud.cdata.com/api/odata/\{workspace\\\_name}](https://cloud.cdata.com/api/odata/\{workspace\\_name})*) with the relevant workspace name to establish the connection.
* Generate a Personal Access Token (PAT) on the [Settings](/en/Settings#personal-access-tokens) page. Copy this down, as it acts as your password during authentication.

## Connect to Connect AI

To establish a connection from SAP Analytics Cloud to Connect AI using the OData protocol, follow these steps.

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

    <Frame>
      <img src="https://mintcdn.com/cdata/U1GIlo3WoTfP-zjY/en/images/sap_connections.png?fit=max&auto=format&n=U1GIlo3WoTfP-zjY&q=85&s=2e5402cef26b1f31da7b36fb2e3cecc8" alt="SAP Connections" width="360" height="463" data-path="en/images/sap_connections.png" />
    </Frame>
  </Step>

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

    <Frame>
      <img src="https://mintcdn.com/cdata/U1GIlo3WoTfP-zjY/en/images/sap_addconnection.png?fit=max&auto=format&n=U1GIlo3WoTfP-zjY&q=85&s=0262370f6d2a6328bf2bab38fce42f41" alt="SAP Add Connection" width="421" height="162" data-path="en/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**—enter your Connect AI username. This is displayed in the top-right corner of the Connect AI interface. For example, *[test@cdata.com](mailto:test@cdata.com)*.
    * **Password**—enter the PAT you generated on the [Settings](/en/Settings#personal-access-tokens) page.

    <Frame>
      <img src="https://mintcdn.com/cdata/U1GIlo3WoTfP-zjY/en/images/sap_connectionfields.png?fit=max&auto=format&n=U1GIlo3WoTfP-zjY&q=85&s=af8fff1fa9d7925db56f36ab15c6f933" alt="SAP Connection Fields" width="829" height="1219" data-path="en/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/U1GIlo3WoTfP-zjY/en/images/sap_createnew.png?fit=max&auto=format&n=U1GIlo3WoTfP-zjY&q=85&s=42f8e12643e39673310eda37d37bad1b" alt="SAP Create New" width="1275" height="484" data-path="en/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/U1GIlo3WoTfP-zjY/en/images/sap_selectsource.png?fit=max&auto=format&n=U1GIlo3WoTfP-zjY&q=85&s=d7ffbff1107a2c1eac29b7cbb58795c0" alt="SAP Select Source" width="829" height="387" data-path="en/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).
