Procedures
Automation procedures in the Google Sheets BDK Book.
Make sure to add the Google Sheets BDK Book to your agent 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
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 Table
to 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
Output Concepts
Examples
Create a new table in a sheet of a spreadsheet
...
get the spreadsheet's sheet whose name is "PO Data"
use the above as the PO Sheet
create a table in the Po Sheet where
the headers are "ID", "Product ID", "Price"
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
Output Concepts
Examples
Create a Google Sheets spreadsheet called "Hello World" in a google drive folder
get the folder at "My Drive Folder"
use the above as the folder
create a google spreadsheet in the folder where
the name is "Hello World"
to get the (file's sheets)
Retrieve sheets from a Google Sheet file.
Input Concepts
Output Concepts
Examples
Retrieve the sheets of a spreadsheet inside a drive folder
get the folder at "My Drive Folder"
use the above as the folder
get the folder's items
get the first item
use the above as the spreadsheet
get the spreadsheet's sheets
Retrieve a sheet of a spreadsheet by name
get the folder at "My Drive Folder"
use the above as the folder
get the folder's items
get the first item
use the above as the spreadsheet
get the spreadsheet's sheet whose name is "PO Data"
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
...
get the spreadsheet's sheet whose name is "PO Data"
use the above as the PO Sheet
get the PO Sheet's tables
Retrieve the table in a sheet of a spreadsheet by name
...
get the spreadsheet's sheet whose name is "PO Data"
use the above as the PO Sheet
get the PO Sheet's table whose name is "PO Table"
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
name
name to the new column
text
Yes
values
list of values to add to the new column
boolean
or number
or text
Yes
Output Concepts
Examples
Insert a new column into a table
...
get the PO Sheet's table whose name is "PO Table"
use the above as the PO Table
insert a new column in the PO Table
the index is 3
the name is "Date"
the values are "06/13/25", "06/14/25"
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
values
list of values to add with the row
boolean
or number
or text
Yes
Output Concepts
Examples
Insert a new row into a table
...
get the PO Sheet's table whose name is "PO Table"
use the above as the PO Table
insert a new row in the PO Table
the index is 3
the values are 5, "Test Product 5", "1KG", "06/10/25"
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
...
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
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
...
get the PO Sheet's table whose name is "PO Table"
use the above as the PO Table
retrieve the columns from the PO 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
...
get the PO Sheet's table whose name is "PO Table"
use the above as the PO Table
retrieve the rows from the PO 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
Examples
Set 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 Table Duplicate"
use the above as the PO Table Duplicate
write the content in the PO Table Duplicate
Last updated
Was this helpful?