Skip to main content

$integration.googleSheets.readDataFromCells

The method is used to read data from cells in a Google spreadsheet.

Syntax

Accepted arguments

The method accepts 4 required arguments.

ArgumentDescriptionType
integrationIdIntegration identifierString
spreadsheetIdGoogle spreadsheet identifierString
sheetNameThe name of the necessary sheetString
cellsThe cells from where data should be readArray of strings

An example of calling the method:

$integration.googleSheets.readDataFromCells(
"4404df16-bfc7-4bc6-9f84-65d02d000217",
"1gdkEwg2KMeKYJK-yrxgKuk9-uP7ntjtKg5ChDu8906E",
"Sheet1",
["B4", "D4"]
);

Return value

The method returns an array of objects with the following properties.

PropertyDescriptionType
cellThe cell coordinatesString
valueThe data receivedString
tip
The cell value follows the <sheet_name>!<cell_coordinates> format.

Example

This is an example of using the method for accessing a client database from the script.