View as Markdown
Google Sheets icon

Google Sheets ACTION

Update Row

Overwrite cells in an existing row of a Google Sheet. Provide row (the 1-based row number — use Find Rows or Read Rows to get it from a row's _rowNumber) and myColumnData, a positional array of values starting at column A (e.g. ["Alice","alice@ingen.test","Engineering"]). Values are written left-to-right from column A, so include the current value of every column up to the one you're changing (read them first via Get Spreadsheet Info / Read Rows); columns after your last value are left unchanged, not cleared. To add a new row instead of overwriting one, use Add Single Row. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Google Sheets account once, then configure and run Update Row 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-row",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    google_sheets: { authProvisionId: "apn_xxxxxxx" },
    drive: "Drive",
    sheetId: "Spreadsheet ID",
  },
})

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 Row 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 ID string
The spreadsheet containing the worksheet to update
Required Dynamic
worksheetId Worksheet ID integer
Select a worksheet or enter a custom expression. When referencing a spreadsheet dynamically, you must provide a custom expression for the worksheet.
Required Dynamic
row Row Number integer
Row Number
Required
myColumnData Values string[]
New values for each cell of the row, as an array or JSON-serialized array string (e.g. ["Alice","31","Senior Engineer"]). Accepts strings, numbers, and booleans; use an empty string for a blank cell.
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-row
Version
1.0.1
App
Google Sheets
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes