Add the ‘Add Multiple Rows’ Tool step to your Tool
You can add the ‘Add Multiple Rows’ Tool step to your Tool by:- Creating a new Tool, then searching for the ‘Add Multiple Rows’ Tool step
- Click ‘Expand’ to see the full Tool step
- 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.
- Enter the new Row Values. This should be an array of arrays.
Example:
[["John Doe", "john.doe@example.com", "123 Main St"], ["Jane Doe", "jane.doe@example.com", "456 Main St"]]
- Check whether to reset the row formatting.
- 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 agentParameters
The Drive you want to use. By default, the tool uses “My Drive”.
To get the spreadsheet ID, navigate to your Google Sheet and copy the ID from the URL (the long string between
/d/
and /edit
).
To get the worksheet ID, open the specific worksheet you want to use and copy the ID from the URL (appears after
#gid=
).
The data being inserted will need to be in an array of arrays format.Example:
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.Playground
Frequently asked questions (FAQs)
What is the difference between using the green input variables and the dropdown menu?
What is the difference between using the green input variables and the dropdown menu?
Can I use a mix of both dropdown menu and green input variables?
Can I use a mix of both dropdown menu and green input variables?