View as Markdown
Google Sheets icon

Google Sheets ACTION

Update Rows

Update multiple rows in a spreadsheet defined by a range
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Google Sheets account once, then configure and run Update Rows from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "google_sheets-update-rows",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    google_sheets: { authProvisionId: "apn_xxxxxxx" },
    drive: "Drive",
    sheetId: "Spreadsheet",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Update Rows inputs
Property Type Description
drive Drive string
The drive containing the worksheet to update. If you are connected with any Google Shared Drives, you can select it here.
Optional Dynamic
sheetId Spreadsheet string
The spreadsheet containing the worksheet to update
Required Dynamic
sheetName Sheet Name string
Your sheet name
Required Dynamic
range Range string
The A1 notation of the values to retrieve. E.g., A1:E5
Required
rows Row Values string
Provide an array of arrays. Each nested array should represent a row, with each element of the nested array representing a cell/column value (e.g., passing [["Foo",1,2],["Bar",3,4]] will insert two rows of data with three columns each). The most common pattern is to reference an array of arrays exported by a previous step (e.g., {{steps.foo.$return_value}}). You may also enter or construct a string that will JSON.parse() to an array of arrays.
Required

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
google_sheets-update-rows
Version
0.1.4
App
Google Sheets
Authentication
OAuth
Behavior
May modify external data