GoLess
  • Basics
    • Recording Actions
    • Adding workflow manually
    • Tutorial: Scraping data
  • Workflow
    • Customization
    • Blocks
    • Global Data
    • Variables
    • Element Selector
    • Expressions
    • Workflow Table
    • Looping
    • Google Drive
  • Blocks
    • General
      • Note Block
      • Trigger Block
      • Execute Workflow Block
      • Delay Block
      • Export Data Block
      • HTTP Request Block
      • Blocks Group
      • Clipboard Block
      • Wait Connections Block
      • Notification Block
      • Workflow State
      • Parameter Prompt Block
    • Browser
      • Active Tab Block
      • New Tab Block
      • Switch Tab Block
      • New Window Block
      • Proxy Block
      • Go Back Block
      • Go Forward Block
      • Close Tab/Window Block
      • Take Screenshot Block
      • Browser Event Block
      • Handle Download Block
      • Handle Dialog Block
      • Reload Tab Block
      • Get Tab URL Block
      • Cookie Block
    • Web Interaction
      • Click Element Block
      • Get Text Block
      • Scroll Element Block
      • Link Block
      • Attribute Value Block
      • Forms Block
      • Javascript Code Block
      • Trigger Event Block
      • Switch Frame Block
      • Upload File Block
      • Hover Element Block
      • Save Assets Block
      • Press Key Block
      • Create Element Block
    • Control Flow
      • Repeat Task Block
      • Conditions Block
      • Element Exists Block
      • While Loop Block
      • Loop Data Block
      • Loop Elements Block
      • Loop Breakpoint
    • Data
      • Insert Data Block
      • Delete Data Block
      • Get Log Data Block
      • Slice Variable Block
      • Increase Variable Block
      • RegEx Variable Block
      • Data Mapping Block
      • Sort Data Block
    • Оnline Services
      • Google Sheets Block
    • Premium
      • ChatGPT Block
      • Captcha Block
  • REFERENCE
    • Logs
    • Schedule
    • Storage
    • Packages
    • Condition Builder
    • Workflow Common Errors
    • JavaScript Execution Context
Powered by GitBook
On this page
  • Granting Access to the Spreadsheet
  • Spreadsheet ID
  • Cell Range
  • Reading Spreadsheet Values
  • Updating Spreadsheet Values
  1. Blocks
  2. Оnline Services

Google Sheets Block

This integration allows you to read or write data from a Google Sheets spreadsheet.

PreviousОnline ServicesNextPremium

Last updated 2 years ago

Granting Access to the Spreadsheet

Before using this integration, you need to give access to the GoLess service. You can do this in two ways:

  1. Share the spreadsheet publicly, but note that GoLess will only have read access.

  2. Share the spreadsheet with the GoLess service account by clicking the share button on the top right of the spreadsheet and entering [email protected].\

Spreadsheet ID

The Spreadsheet ID is a string of letters, numbers, hyphens, or underscores. You can find it in the Google Sheets URL.

https://docs.google.com/spreadsheets/d/1CyccvSsq0VdujNThPKr3l8ipLQfQo9KuzTpJxpwTPyg/edit#gid=0

Cell Range

Reading Spreadsheet Values

You can get the values of the cells in the spreadsheet.

  • Reference key The key for identifying the Google Sheets data.

  • Use the first row as keys Use the first row of the spreadsheet as the object key. For example, if you have a spreadsheet like this:

name
age

foo

22

bar

23

// option disabled
[["name", "age"], ["foo", 22], ["bar", 23]]

// option enabled
[{ "name": "foo", "age": 22 }, { "name": "bar", "age": 23 }]

Accessing Spreadsheet Data

To access the spreadsheet values from an input of a block, you can use expressions like {{ googleSheets.referenceKey.path }} syntax.

Updating Spreadsheet Values

You can update the values of the cells in the spreadsheet.

  • Value input option Determines how input data should be interpreted, defaulting to RAW.

Value
Description

RAW

The values the user has entered will not be parsed and will be stored as-is

USER_ENTERED

The values will be parsed as if the user typed them into the UI. Numbers will stay as numbers, but strings may be converted to numbers, dates, etc. following the same rules that are applied when entering text into a cell via the Google Sheets UI.

Example

[["name", "age"], ["foo", 22], ["bar", 23, "text"]]
  • Use keys as the first row Use the columns as the first row on the spreadsheet.

The cell range is the range of the cells that you want to get or update. You can define the range using either the like Sheet1!A1:B2 or like Sheet1!R1C1:R2C2.

Read more:

Read more on the

Data source The source of the data for updating the spreadsheet defaults to a . When using the custom option, the input data must be an array of arrays with valid JSON syntax.

A1 notation
R1C1 notation
Google developer page
table
Expressions