> 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/use-cases/marketing-hub/how-to-create-coupon-from-magento-or-erp-system-to-cdp-365.md).

# How to create Coupon from Magento or ERP system to CDP 365?

### Create a Data Source

&#x20;1\. Log into the **CDP 365** system.

&#x20;2\. Hover your mouse over **Data**, and choose **Source** under **Dataflows**.

<figure><img src="/files/2rjyGahCvPCR2ZKZeGjz" alt=""><figcaption></figcaption></figure>

3\. Click <img src="/files/ZYd4OPWsCKGhoXmKEcU1" alt="" data-size="line"> to create Data Source. Choose **Batch**.

<figure><img src="/files/COuiOfBl17qoBWtgub5q" alt=""><figcaption></figcaption></figure>

4\. Select **MySQL** Connector

<figure><img src="/files/azmeW1lgeudnUWNYgK8Z" alt=""><figcaption></figcaption></figure>

4\. Input the necessary information to connect to your database to get the data coupon. Then click the **Authenticate** button

<figure><img src="/files/GOR9t30OsYuIosnt85AT" alt=""><figcaption></figcaption></figure>

5\. Input the **Data Source name** then click the **Connect** button to connect

### Create a Dataflow to push data coupons into CDP

&#x20;1\. Log into the **CDP 365** system. After logging in, click the menu in the left corner of the screen

&#x20;2\. Select the menu as follows: "**DATAFLOWS" -> "Dataflows"**

<figure><img src="/files/YnVpeaOp9CmxeU9jw39X" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/nJtSCebJvlFADqf0zmuA" alt=""><figcaption></figcaption></figure>

3\. Click **+** button to create a Dataflow

<figure><img src="/files/u36bk9HqGDTi1qljrdrV" alt=""><figcaption></figcaption></figure>

4\. Select the **MySQL** data source that you created earlier, then click the **Create dataflow** button

[Create a "MySQL" Datasource](#create-a-new-datasource)

<figure><img src="/files/mlB2WTryUO9dkM3K5297" alt=""><figcaption></figcaption></figure>

5\. Select the **fields** contains coupon data that you want to push to **CDP 365**

<figure><img src="/files/JCLwMbKp4cDfYQnuXSqh" alt=""><figcaption></figcaption></figure>

6\. Add a **Destination channel** node. Select the **Data Coupon** destination channel you created earlier

**You can see how to create a Data Coupon destination channel** [**here**](/cdp-365-user-guide-en/use-cases/dataflows/how-to-create-a-destination-channel-in-dataflows.md)&#x20;

<figure><img src="/files/UTesjctdrUTJPHYyhhzT" alt=""><figcaption></figcaption></figure>

7\. Select the pool you created earlier on the CDP to which you want to push Coupon data

**NOTE: You should create an empty pool first. You can see how to create a pool** [**here**](/cdp-365-user-guide-en/marketing-hub/promotion-center.md)

<figure><img src="/files/WZpSuvD0pnfQ7tERB3Bj" alt=""><figcaption></figcaption></figure>

8\. Save dataflow

9\. Set up a schedule that you want the **Dataflows** to execute

<figure><img src="/files/z8krKxDSnNACIoF0lSba" alt=""><figcaption></figcaption></figure>

**Note: Force Run ->** You can run dataflow immediately without waiting for the scheduled time

<figure><img src="/files/Bsn8laNfFqKqjHzI62c8" alt=""><figcaption></figcaption></figure>


---

# 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/use-cases/marketing-hub/how-to-create-coupon-from-magento-or-erp-system-to-cdp-365.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.
