Write To GoogleSheets

Description

The Write To GoogleSheets component allows you to output data to Google Spreadsheets. To use this component, you need to obtain a Google account and perform preliminary setu

excel365

Input payload (cv.Payload) accepts input as an array of JSON arrays or an array of JSON Objects. Otherwise, it converts to string and outputs as a 1-row, 1-column spreadsheet.

Input PayloadExample
JSON Array Payload Example[[123, "abc", "xxx"], [456, "def", "yyy"], [789, "hij", "zzz"]]
JSON Object Payload Example[{"field1": 123, "field2":"abc", "field3":"xxx"}, {"field1": 456, "field2":"def", "field3":"yyy"}, {"field1": 789, "field2":"hij", "field3":"zzz"}]

Component Properties

Property NameDescription
Specification MethodSpecify how to output data to spreadsheet. Choose "Folder Path", "Folder ID", or "File ID"
Folder PathSpecify folder path in Google Drive. If not specified, My Drive (root) is targeted
Folder IDSpecify folder ID in Google Drive. If not specified, My Drive (root) is targeted
Drive File NameSpecify the file name of Google Spreadsheet on Google Drive. Creates new if existing file doesn't exist
File IDSpecify specific file ID on Google Drive
Sheet NameSpecify sheet name to output data. If not specified, first sheet is targeted
Data Insert ModeSpecify how to insert data from "RAW Data" or "User Input (Formulas & Formatting)"
Write ModeSpecify whether to create New File, Overwrite cells, or Append rows
Output HeaderSelect whether to output header when outputting data
Output Field OrderWhen input payload is JSON Object, list field names to output in desired order, separated by commas
Start ColumnSpecify the first column to output
Start RowSpecify the first row to output
OAuth2 Client IDSpecify OAuth 2.0 Client ID from GCP
OAuth2 Client SecretSpecify Client Secret from GCP
OAuth2 Redirect URLSpecify Redirect URL from GCP
OAuth2 Access TokenObtain by pressing the Get Token button. Can also update by pressing the Update Token button

Component Variables

Component VariableDescription
cv.FileIDFile ID
cv.FolderIDParent folder ID of file saved to Google Drive
cv.DriveFilenameDestination file name in Google Drive