본문으로 건너뛰기

Google Sheets

시트 읽기

  1. 추가한 Google Sheets 데이터 소스를 선택합니다.
  2. 다음 중 데이터 소스에서 "시트 읽기" 작업을 선택합니다.
  3. 작업을 수행할 스프레드시트 문서를 선택합니다.
  4. 데이터를 읽어올 시트를 선택합니다.
  5. 데이터를 읽어올 범위를 선택합니다. (템플릿 입력 가능)

예제

데이터를 읽어오는 데 성공하면 다음 예제와 같은 결과가 반환됩니다.

{
"majorDimension": "ROWS",
"range": "'시트1'!A1:Z1001",
"values": [
["1", "2", "3", "4"],
["2023-01", "100", "100", "first"],
["2023-02", "200", "100", "second"],
["2023-03", "400", "200", "third"],
["2023-04", "800", "400", "fourth"],
["2023-05", "1600", "800", "fifth"],
["2023-08", "6400", "4800", "sixth"]
]
}

값 추가

  1. 추가한 Google Sheets 데이터 소스를 선택합니다.
  2. 다음 중 데이터 소스에서 "값 추가" 작업을 선택합니다.
  3. 작업을 수행할 스프레드시트 문서를 선택합니다.
  4. 데이터를 추가할 시트를 선택합니다.
  5. 추가할 데이터를 입력합니다. (코드 입력 가능)

예제

다음은 입력할 수 있는 데이터의 예제입니다.

[
["2023-09", 12800, 6400, "seventh"],
["2023-10", 12800, 0, "eighth"]
]

데이터를 추가하는 데 성공하면 다음 예제와 같은 결과가 반환됩니다.

{
"spreadsheetId": "exampleGoogleSheets_zWhzkyVGqhvgPsdHFkXiAPYU",
"tableRange": "'시트1'!A1:D8",
"updates": {
"spreadsheetId": "exampleGoogleSheets_zWhzkyVGqhvgPsdHFkXiAPYU",
"updatedCells": 8,
"updatedColumns": 4,
"updatedRange": "'시트1'!A9:D10",
"updatedRows": 2
}
}

시트 업데이트

  1. 추가한 Google Sheets 데이터 소스를 선택합니다.
  2. 다음 중 데이터 소스에서 "시트 업데이트" 작업을 선택합니다.
  3. 작업을 수행할 스프레드시트 문서를 선택합니다.
  4. 데이터를 업데이트할 시트를 선택합니다.
  5. 업데이트할 범위를 입력합니다. (템플릿 입력 가능)
  6. 업데이트할 데이터를 입력합니다. (코드 입력 가능)

예제

다음은 입력할 수 있는 데이터의 예제입니다.

범위:

A10:D11

데이터:

[
["2023-10", 25600, 12800, "eighth"],
["2023-10", 51200, 25600, "ninth"]
]

데이터를 업데이트하는 데 성공하면 다음 예제와 같은 결과가 반환됩니다.

{
"spreadsheetId": "exampleGoogleSheets_zWhzkyVGqhvgPsdHFkXiAPYU",
"updatedCells": 8,
"updatedColumns": 4,
"updatedRange": "'시트1'!A10:D11",
"updatedRows": 2
}

Google Drive에 저장

  1. 추가한 Google Sheets 데이터 소스를 선택합니다.
  2. 다음 중 데이터 소스에서 "Google Drive에 저장" 작업을 선택합니다.
  3. 저장할 스프레드시트 이름을 지정합니다. (템플릿 입력 가능)
  4. 저장할 데이터를 입력합니다. (코드 입력 가능)

예제

다음은 입력할 수 있는 데이터의 예제입니다.

스프레드시트 이름:

Hello Hops!

데이터:

[
["name", "age", "address"],
["김홉스", 25, "서울 송파구"],
["박홉스", 30, "부산 부산진구"]
]

스프레드시트를 저장하는 데 성공하면 다음 예제와 같은 결과가 반환됩니다.

{
"properties": {
"autoRecalc": "ON_CHANGE",
"defaultFormat": {
"backgroundColor": {
"blue": 1,
"green": 1,
"red": 1
},
"backgroundColorStyle": {
"rgbColor": {
"blue": 1,
"green": 1,
"red": 1
}
},
"padding": {
"bottom": 2,
"left": 3,
"right": 3,
"top": 2
},
"textFormat": {
"bold": false,
"fontFamily": "arial,sans,sans-serif",
"fontSize": 10,
"foregroundColor": {},
"foregroundColorStyle": {
"rgbColor": {}
},
"italic": false,
"strikethrough": false,
"underline": false
},
"verticalAlignment": "BOTTOM",
"wrapStrategy": "OVERFLOW_CELL"
},
"locale": "ko_KR",
"spreadsheetTheme": {
"primaryFontFamily": "Arial",
"themeColors": [
{
"color": {
"rgbColor": {}
},
"colorType": "TEXT"
},
{
"color": {
"rgbColor": {
"blue": 1,
"green": 1,
"red": 1
}
},
"colorType": "BACKGROUND"
},
{
"color": {
"rgbColor": {
"blue": 0.95686275,
"green": 0.52156866,
"red": 0.25882354
}
},
"colorType": "ACCENT1"
},
{
"color": {
"rgbColor": {
"blue": 0.20784314,
"green": 0.2627451,
"red": 0.91764706
}
},
"colorType": "ACCENT2"
},
{
"color": {
"rgbColor": {
"blue": 0.015686275,
"green": 0.7372549,
"red": 0.9843137
}
},
"colorType": "ACCENT3"
},
{
"color": {
"rgbColor": {
"blue": 0.3254902,
"green": 0.65882355,
"red": 0.20392157
}
},
"colorType": "ACCENT4"
},
{
"color": {
"rgbColor": {
"blue": 0.003921569,
"green": 0.42745098,
"red": 1
}
},
"colorType": "ACCENT5"
},
{
"color": {
"rgbColor": {
"blue": 0.7764706,
"green": 0.7411765,
"red": 0.27450982
}
},
"colorType": "ACCENT6"
},
{
"color": {
"rgbColor": {
"blue": 0.8,
"green": 0.33333334,
"red": 0.06666667
}
},
"colorType": "LINK"
}
]
},
"timeZone": "Etc/GMT",
"title": "Hello Hops!"
},
"sheets": [
{
"properties": {
"gridProperties": {
"columnCount": 26,
"rowCount": 1000
},
"index": 0,
"sheetId": 1555412657,
"sheetType": "GRID",
"title": "Sheet 1"
}
}
],
"spreadsheetId": "example-qxlUYaKBjfBpeaIU-8XXEvFEx9QZud06mZc",
"spreadsheetUrl": "https://docs.google.com/spreadsheets/d/example-qxlUYaKBjfBpeaIU-8XXEvFEx9QZud06mZc/edit?ouid=100000000000000000000"
}