Add the ‘Add Multiple Rows’ Tool step to your Tool

You can add the ‘Add Multiple Rows’ Tool step to your Tool by:
  1. Creating a new Tool, then searching for the ‘Add Multiple Rows’ Tool step
  2. Click ‘Expand’ to see the full Tool step
  3. Using the dropdown menu:
    • Select the Google account you would like to use.
    • Select the Drive you would like to use (defaults to “My Drive”).
    • Select the Spreadsheet you would like to add the row to.
    • Select the worksheet you would like to add the row to.
  4. Enter the new Row Values. This should be an array of arrays.
    Example: [["John Doe", "[email protected]", "123 Main St"], ["Jane Doe", "[email protected]", "456 Main St"]]
  5. Check whether to reset the row formatting.
  6. Click ‘Run step’ to test out the Tool

Using in an Agent

There are 3 ways to configure the tool step when using in an agent
This is the easiest way to configure the tool step. You can select the Drive, Spreadsheet and Worksheet from a list of options via the dropdown menu.Google Sheets Add multiple rows

Parameters

Drive
string
The Drive you want to use. By default, the tool uses “My Drive”.
Spreadsheet ID
string
required
To get the spreadsheet ID, navigate to your Google Sheet and copy the ID from the URL (the long string between /d/ and /edit).
Worksheet ID
string
required
To get the worksheet ID, open the specific worksheet you want to use and copy the ID from the URL (appears after #gid=).
Row Values
array of arrays
required
The data being inserted will need to be in an array of arrays format.Example:
[
  ["John Doe", "[email protected]", "123 Main St"], // row 1
  ["Jane Doe", "[email protected]", "456 Main St"] // row 2
  // ...
]
Reset Row Formatting
boolean
If this option is unchecked, the format will be preserved when inserting data. If this option is checked, the data will be inserted as plain text.

What is an array of arrays?

An array is a data structure similar to a CSV row, where each element is separated by a comma, and the entire row is enclosed in square brackets. An array can have many different types of data, including strings, numbers, , and even other arrays.
["Dog", 1, true]
An array of arrays is just multiple arrays put together. This is what an array of arrays looks like:
[
  ["Column 1 Row 1", "Column 2 Row 1", "Column 3 Row 1"],
  ["Column 1 Row 2", "Column 2 Row 2", "Column 3 Row 2"],
  ["Column 1 Row 3", "Column 2 Row 3", "Column 3 Row 3"]
]
When you combine multiple arrays together, you can see that the data is structured like a Google Sheet.

Playground

Frequently asked questions (FAQs)