Procedures
Automation procedures in the Smartsheet book.
Ensure that you have installed or connected the Smartsheet book and created a new playground before using these automation procedures.
to add some content to a sheet
Append the contents of a table into an existing sheet.
This procedure adds new rows from a table to an existing sheet, matching the table columns to the sheet's existing column structure.
Input Concepts
content
The table object to append.
table
Yes
(no default)
Output Concepts
Examples
Append the contents of a table in a sheet
get a sheet whose name is "Invoices"
>>>
create a table where
the column names are "Product Id", "Price"
insert a row in the table where
the Product Id is "00003"
the Price is 313
use the table as the content
>>>
add the content to the sheetto get some (sheet's columns)
Get a sheet's columns.
This procedure retrieves all columns from a sheet, including their names and types.
Input Concepts
Output Concepts
Examples
Get the sheet's columns
to get some (sheet's rows)
Get a sheet's rows.
This procedure retrieves all rows from a sheet, or can filter rows based on specific column values.
Input Concepts
Output Concepts
Examples
Get the sheet's rows
to get some (sheets)
Gets all sheets.
This procedure can get a list of all sheets, as well as getting a single sheet by filtering by its name.
Output Concepts
Examples
Get all sheets
Get a sheet by name
to get some (workspaces)
Gets all workspaces.
This procedure can get a list of all workspaces, as well as getting a single workspace by filtering by its name.
Output Concepts
Examples
Get all workspaces
Get a workspace by name
to insert a (new column) in a sheet
Inserts a column in a sheet.
This procedure adds a new column to a sheet at a specific position, allowing you to specify the column name and type.
Input Concepts
name
Name of column to add
text
Yes
(no default)
column type
Type of column to add
enum[abstract_datetime, checkbox, contact_list, date, datetime, multi_contact_list, multi_picklist, picklist, predecessor, text_number]
Yes
(no default)
index
Index of column to add (First index is 1)
number
Yes
(no default)
Output Concepts
Examples
Insert a new column at index
to insert a (new row) in a sheet
Append a row in a sheet.
This procedure adds a new row to a sheet with the specified values, and can optionally indent the row under an existing parent row.
Input Concepts
values
List of values to insert
boolean or number or text
Yes
(no default)
Output Concepts
Examples
Append a new row to a sheet
to write the content in a workspace
Set the contents of a table to a new sheet.
This procedure creates a new sheet within a workspace and populates it with the contents of a table, including all columns and rows.
Input Concepts
sheet name
The name of the new sheet.
text
Yes
(no default)
content
The table object to set in the sheet.
table
Yes
(no default)
Output Concepts
Examples
Set the contents of a table into a new sheet
Last updated
Was this helpful?
