# Google Sheets

<div align="left"><img src="https://help.bluecore.vn/assets/imgs/img-connector/image22.gif" alt=""> <figure><img src="https://content.gitbook.com/content/QAQ4hFJypvowstD5XZfm/blobs/bsgtbEYDcO0LEZIPXp8V/image22.gif" alt=""><figcaption></figcaption></figure></div>

Đồng bộ dữ liệu từ Google Sheets được chia sẻ công khai đến Bluecore. Dữ liệu sẽ được cập nhật vào lúc 0h mỗi ngày.

{% hint style="info" %}
Nếu không muốn chia sẻ công khai tài liệu Google Sheet, bạn có thể chỉ chia sẻ cho tài khoản của Bluecore: <mark style="color:yellow;">`adminportal@bluecore-dcp.iam.gserviceaccount.com`</mark>
{% endhint %}

#### **Hướng dẫn kết nối Google Sheet**

Bước 1: Chọn biểu tương ***“Add connection”*** ở bên phải logo Google Sheet để kết nối với Google Sheet của bạn

Xuất hiện bảng ***“Connect Public Google Sheets”***

<div align="left"><img src="https://help.bluecore.vn/assets/imgs/img-connector/image23.png" alt="i"> <figure><img src="https://content.gitbook.com/content/QAQ4hFJypvowstD5XZfm/blobs/YHePHsfM1gwFdTbt1dDo/image23.png" alt=""><figcaption></figcaption></figure></div>

Bước 2: **Dán link Google Sheet** được chia sẻ **công khai** vào ô ***“Public Google Sheets url”*** và chờ xuất hiện dấu tick xanh bên cạnh.

Bước 3: Chọn sheet cần đồng bộ, bạn có thể đặt tên bảng chứa dữ liệu của sheet tại trường "Table name"

<figure><img src="https://content.gitbook.com/content/QAQ4hFJypvowstD5XZfm/blobs/MTNVhjGYSs7ythua3HOb/image.png" alt=""><figcaption></figcaption></figure>

Bước 4: Chọn **Connect** để hoàn tất việc kết nối với Google Sheet của bạn

Bước 5: Kết nối thành công vào Bluecore. Đợi một vài phút để tải dữ liệu từ Google Sheet của bạn được đồng bộ về Bluecore

<div><img src="https://help.bluecore.vn/assets/imgs/img-connector/image26.png" alt=""> <figure><img src="https://content.gitbook.com/content/QAQ4hFJypvowstD5XZfm/blobs/xsgNGhvAQCordbIxtPd6/image26.png" alt=""><figcaption></figcaption></figure></div>

#### **Quản lý danh sách kết nối**

Để đồng bộ lại cấu trúc cột và dữ liệu:

<div><img src="https://help.bluecore.vn/assets/imgs/img-connector/GoogleSheet_Step1.png" alt=" "> <figure><img src="https://content.gitbook.com/content/QAQ4hFJypvowstD5XZfm/blobs/F3VSUns0gkwTRWAFNiuE/GoogleSheet_Step1.png" alt=""><figcaption></figcaption></figure></div>

<div><img src="https://help.bluecore.vn/assets/imgs/img-connector/GoogleSheet_Step3.png" alt=""> <figure><img src="https://content.gitbook.com/content/QAQ4hFJypvowstD5XZfm/blobs/sF78mFFCKdZqLh3Hw6FS/GoogleSheet_Step2.png" alt=""><figcaption></figcaption></figure></div>

Để hủy kích hoạt một sheet nếu không còn sử dụng hoặc không cần đồng bộ dữ liệu mới:

<figure><img src="https://content.gitbook.com/content/QAQ4hFJypvowstD5XZfm/blobs/RookEnudbAU5z78oJ8vR/GoogleSheet_Step3.png" alt=""><figcaption></figcaption></figure>

**Lưu ý:**

* Dữ liệu sẽ được cập nhật vào lúc 0h mỗi ngày
* n Active Connections: n là số tài khoản được kết nối với Bluecore
