# Data Mapping

**Nguồn dữ liệu**\
Nguồn dữ liệu để ánh xạ có thể là một biến hoặc bảng.

* **Bản đồ dữ liệu**\
  Bản đồ dữ liệu là nơi bạn khớp các trường nguồn với các trường đích bằng cách nhập ký hiệu dấu chấm. Nguồn có thể có nhiều đích. Ví dụ, khi bạn có dữ liệu như bên dưới

```json
[
	{
		"address": "2204 Volutpat Rd.",
		"name": "Palmer Porter",
		"phone": "(251) 595-5203",
		"email": "phasellus.dolor@aol.org",
		"postalZip": "8517",
		"country": "United States"
	},
	{
		"address": "2741 Dis Rd.",
		"name": "Byron Bowers",
		"phone": "(563) 717-9312",
		"email": "mattis.ornare@outlook.couk",
		"postalZip": "5612",
		"country": "Costa Rica"
	},
	{
		"address": "Ap #923-7718 Sed Rd.",
		"name": "Joseph Waller",
		"phone": "1-897-102-6811",
		"email": "cras.pellentesque@outlook.edu",
		"postalZip": "38-251",
		"country": "Belgium"
	}
]
```

và có bản đồ dữ liệu như sau.

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

Dữ liệu sẽ được chuyển thành

```json
[
	{
		"email": "phasellus.dolor@aol.org"
		"full_name": "Palmer Porter",
		"address": {
			"street": "2204 Volutpat Rd.",
			"postalZip": "8517",
			"country": "United States"
		},
	},
	{
		"email": "mattis.ornare@outlook.couk",
		"full_name": "Byron Bowers",
		"address": {
			"street": "2741 Dis Rd.",
			"postalZip": "5612",
			"country": "Costa Rica"
		},
	},
	{
		"email": "cras.pellentesque@outlook.edu",
		"full_name": "Joseph Waller",
		"address": {
			"street": "Ap #923-7718 Sed Rd."
			"postalZip": "38-251",
			"country": "Belgium"
		}
	}
]
```

* **Gán cho biến**\
  Có thể gán dữ liệu được ánh xạ vào một biến hoặc không.
  * **Tên biến**\
    Chọn tên của biến được dùng để gán dữ liệu sau khi ánh xạ
* **Chèn vào bảng**\
  Có thể gán dữ liệu được ánh xạ vào một bảng hoặc không
  * **Chọn cột**\
    Cột nơi dữ liệu được ánh xạ sẽ được chèn vào.


---

# Agent Instructions: 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:

```
GET https://minhtien192057s-organization.gitbook.io/gemlogin-book/khoi/data/data-mapping.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
