Procedures
Automation procedures in the Google Sheets book.
Ensure that you have installed or connected the Google Sheets book and created a new playground before using these automation procedures.
to add some content to a table
Append the contents of a table into a sheet table reference.
Input Concepts
content
the content to be added into the table reference.
table
Yes
(no default)
Examples
Append the contents of a table into a sheet table
...
get the PO Sheet's table whose name is "PO Table"
use the above as the PO Table
read the content from the PO Table
get the PO Sheet's table whose name is "PO History Table"
use the above as the PO History Table
add the content to the PO History Tableto create a (table) in a sheet
Create a table in a spreadsheet's sheet.
Input Concepts
headers
List of the headers for the new table.
text
Yes
(no default)
Output Concepts
Examples
Create a new table in a sheet of a spreadsheet
to create a google spreadsheet in a (folder)
Creates a new Google Sheet document.
Input Concepts
name
The name for the new Google Sheets spreadsheet.
text
Yes
(no default)
The folder to create the Google Sheets spreadsheet in.
google drive folder reference
No
(no default)
Output Concepts
Examples
Create a Google Sheets spreadsheet called "Hello World" in a google drive folder
to get the (file's sheets)
Retrieve sheets from a Google Sheet file.
Input Concepts
Google Sheets spreadsheet from which to retrieve the sheets.
google drive file reference
Yes
(no default)
Output Concepts
Examples
Retrieve the sheets of a spreadsheet inside a drive folder
Retrieve a sheet of a spreadsheet by name
to get the (sheet's tables)
Retrieve the tables of a Google spreadsheet sheet.
Input Concepts
Output Concepts
Examples
Retrieve the tables in a sheet of a spreadsheet
Retrieve the table in a sheet of a spreadsheet by name
to insert a (new column) in the table
Insert a new column into a Google spreadsheet's Table.
Input Concepts
index
index in which to insert the column.
number
Yes
(no default)
name
name to the new column
text
Yes
(no default)
values
list of values to add to the new column
boolean or number or text
Yes
(no default)
Output Concepts
Examples
Insert a new column into a table
to insert a (new row) in the table
Insert a new row into a Google spreadsheet's Table.
Input Concepts
index
index in which to insert the row, starting at 0 and relative to the table's header.
number
Yes
(no default)
values
list of values to add with the row
boolean or number or text
Yes
(no default)
Output Concepts
Examples
Insert a new row into a table
to read the (content) from a table
Read the contents of a sheet table reference into a Table.
Input Concepts
Output Concepts
content
A table with the read contents.
table
Examples
Read the contents of a sheet table
to retrieve the (columns) from the table
Retrieve the columns of a Google spreadsheet table.
Input Concepts
Output Concepts
Examples
Retrieve the columns of a table
to retrieve the (rows) from the table
Retrieve the rows of a Google spreadsheet table.
Input Concepts
Output Concepts
Examples
Retrieve the rows of a table
to write the content in a table
Set the contents of a table into a sheet table reference.
Input Concepts
content
the content to be set into the table reference.
table
Yes
(no default)
Examples
Set the contents of a table into a sheet table
Last updated
Was this helpful?
