> For the complete documentation index, see [llms.txt](https://docs.planetcrust.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.planetcrust.com/human-connections/google/google-sheets-individual/action-create-multiple-spreadsheet-rows.md).

# Action: Create Multiple Spreadsheet Rows

<p align="center"><a class="button primary" data-icon="circle-caret-right">Try @Human</a><a class="button primary" data-icon="check">Buy @Human Subscriptions</a><a class="button primary" data-icon="comments">Join @Human Community</a></p>

<figure><img src="/files/auAzkjCWGFak171PMqGd" alt=""><figcaption></figcaption></figure>

<p align="center">The Create Multiple Spreadsheet Rows action inserts multiple new rows into a specified sheet.</p>

{% embed url="<https://www.youtube.com/watch?v=CyuUuaBSZzA>" %}

#### Example User Story

I want to append multiple rows of sales data to a Google Sheet so that I can keep track of daily transactions efficiently.

#### Fields

| Field Name       | Field Type | Required |
| ---------------- | ---------- | -------- |
| spreadsheetId    | String     | Yes      |
| range            | String     | Yes      |
| values           | Any        | Yes      |
| valueInputOption | String     | No       |
| insertDataOption | String     | No       |

### Related Connections

[Google Sheets](/human-connections/google/google-sheets-individual.md)

### Related Automations

Example link

### Code (Apache v2.0): Operation

```
{
  "handle": "create-multiple-spreadsheet-rows",
  "state": "inDev",
  "meta": {
    "short": "Create Multiple Spreadsheet Rows",
    "description": "Adds multiple rows of data to a Google Sheet."
  },
  "input": [
    {
      "name": "spreadsheetId",
      "type": "String",
      "required": true,
      "meta": {
        "description": "The spreadsheet to append rows to."
      }
    },
    {
      "name": "range",
      "type": "String",
      "required": true,
      "meta": {
        "description": "The A1 notation of the values to update."
      }
    },
    {
      "name": "values",
      "type": "Any",
      "required": true,
      "aggregate": true,
      "meta": {
        "description": "A 2D array of values to append."
      }
    },
    {
      "name": "valueInputOption",
      "type": "String",
      "meta": {
        "default": "RAW",
        "description": "How the input data should be interpreted.",
        "options": [
          "RAW",
          "USER_ENTERED"
        ]
      }
    },
    {
      "name": "insertDataOption",
      "type": "String",
      "meta": {
        "default": "INSERT_ROWS",
        "description": "How the input data should be inserted.",
        "options": [
          "INSERT_ROWS",
          "OVERWRITE"
        ]
      }
    }
  ],
  "output": [
    {
      "name": "spreadsheetId",
      "type": "String",
      "selector": [
        "spreadsheetId"
      ],
      "meta": {
        "description": "The ID of the spreadsheet that was updated."
      }
    },
    {
      "name": "updatedRange",
      "type": "String",
      "selector": [
        "updates",
        "updatedRange"
      ],
      "meta": {
        "description": "The range of the spreadsheet that was updated."
      }
    },
    {
      "name": "updatedRows",
      "type": "Integer",
      "selector": [
        "updates",
        "updatedRows"
      ],
      "meta": {
        "description": "The number of rows that were updated."
      }
    },
    {
      "name": "updatedColumns",
      "type": "Integer",
      "selector": [
        "updates",
        "updatedColumns"
      ],
      "meta": {
        "description": "The number of columns that were updated."
      }
    },
    {
      "name": "updatedCells",
      "type": "Integer",
      "selector": [
        "updates",
        "updatedCells"
      ],
      "meta": {
        "description": "The number of cells that were updated."
      }
    }
  ],
  "steps": [
    {
      "type": "http",
      "http": {
        "method": "POST",
        "path": {
          "value": "/{{spreadsheetId}}/values/{{range}}:append"
        },
        "headers": {
          "Content-Type": {
            "value": "application/json"
          }
        },
        "queryParams": {
          "insertDataOption": {
            "value": "{{insertDataOption}}"
          },
          "valueInputOption": {
            "value": "{{valueInputOption}}"
          }
        },
        "bodyTemplate": {
          "value": "{\"values\": {{values}}}",
          "placeholders": [
            {
              "name": "values",
              "type": "Any",
              "description": "A 2D array of values to append.",
              "required": true,
              "default": ""
            }
          ]
        }
      }
    }
  ]
}
```

<p align="center"><a class="button primary" data-icon="square-caret-right">Try @Human</a><a class="button primary" data-icon="check">Buy @Human Subscription</a><a class="button primary" data-icon="comments">Join @Human Community</a></p>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.planetcrust.com/human-connections/google/google-sheets-individual/action-create-multiple-spreadsheet-rows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
