> For the complete documentation index, see [llms.txt](https://docs.antsomi.com/cdp-365-user-guide-en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.antsomi.com/cdp-365-user-guide-en/dataflows/data-source/create-a-data-source.md).

# Create a Data Source

From Data Sources main page, click <img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FVLPYuAxC35U9cPj2AzRm%2Fimage.png?alt=media&amp;token=7e637fbb-d12f-4a1f-a455-f38eded97bf9" alt="" data-size="line"> to create a new Data Source

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2Fw7E6BxPq7Jh3lrYj62JJ%2Fimage.png?alt=media&amp;token=b7bcf3be-2e12-4d26-a30c-1d19a84b8e0e" alt=""><figcaption></figcaption></figure>

A page will show up to select the connector of this data source as below:

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FAZWN1O7raT6771j8G5kE%2Fimage.png?alt=media&amp;token=7d8f6423-3c62-4eda-8db6-08d94df668b9" alt=""><figcaption><p>Select a data source</p></figcaption></figure>

1. Input name for Data Source
2. Input keywords to look for the desire connector.
3. Click **Select** to select the connector.&#x20;

After selecting the desire Connect, an authentication step will be processed. For each type of Connector selected, different authentication information needs to be input. [Learn more](/cdp-365-user-guide-en/dataflows/data-source/data-source-connectors.md)

After finishing authentication step, a data sheet/source of the Connector should be selected to used as the data source for Dataflow.

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FhexGvQJH7tGs6b1Yblgg%2Fimage.png?alt=media&amp;token=04a7f10a-e4e0-47ce-9963-a411bb51d5e1" alt=""><figcaption></figcaption></figure>

4. Click **Select Connector** to get back to selecting Connector page previously.
5. Select a data sheet/source to use as the data source. Depending on the selected connector, the process to select the data source at this step would be different. [Learn more](/cdp-365-user-guide-en/dataflows/data-source/data-source-connectors.md)
6. Click **Cancel** to cancel the data source creation and get back to the main page of the Data Source.
7. Click **Connect** to connect selected data sheet/source to use this data sheet/source A popup will be shown as following to select the field in the selected data sheet/source:

#### Set up the fields

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FfB0xE6r3kv6wUym0V28D%2FScreenshot%202023-03-26%20170624.png?alt=media&amp;token=8ac72fe8-8670-44aa-a094-c7489edcff8e" alt=""><figcaption><p>Field selection</p></figcaption></figure>

8. Search the desire field.
9. Click <img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FfKEMwAY87ac50DSLN7MI%2Fimage.png?alt=media&amp;token=2358f7f6-13c2-42d6-91ee-6b174293fdca" alt="" data-size="line">to select/unselect a field.
10. Turn on if user only want to show the selected field.
11. Name of the field in the connector's data sheet/source.
12. Name of the field would be shown in CDP 365 Data Source.
13. Data Type of the field
14. There are two option of Treat as:

* **Attribute:** This field would be used as the attribute.
* **Measure:** This field would be used as a measurable field in data source. The aggregation for this calculation is at step (15)

15. If the Treat as at step (14) is **Measure**, there are some options of aggregation can be selected as following:

![](https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FyNSNaSpx56bhjmEgeATp%2FScreenshot%202023-03-26%20171056.png?alt=media\&token=4cd45884-237c-4f79-a197-e4b76bdd980e)&#x20;

16. Input the description for a field.
17. Click **Apply** to use the selected field of the data sheet/source and finish creating a new Data source. The detail of created data source will be displayed as below.

<figure><img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FrA2FN1FROQLBnSQ0H3Om%2Fimage.png?alt=media&amp;token=72de91e6-b066-4b7b-bd86-2d92b845f36d" alt=""><figcaption></figcaption></figure>

To View/Edit a data source, please see in [this link](/cdp-365-user-guide-en/dataflows/data-source/view-edit-a-data-source.md).

18. Click **Cancel** or <img src="https://826840553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbtU4vFUxT5JkWYHePuoX%2Fuploads%2FPvugz0QFaIK23GZur9r4%2Fimage.png?alt=media&amp;token=8d208469-cc2c-44c2-9ce4-3bdb0d9dd9bf" alt="" data-size="line">to cancel the field selection and close the popup.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.antsomi.com/cdp-365-user-guide-en/dataflows/data-source/create-a-data-source.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
