StyloDocs
Workflow blocks

Google

Read and write Google Sheets, Docs, and Drive files

View as Markdown

google — Read and write Google Sheets, Docs, and Drive files.

Where it appears

The Google block lives in the Integrations group of the Workflow Builder. Connect the Google integration before adding it.

Fields

FieldTypeRequiredDefaultDescription
resourceselectYessheetWhich Google resource to work with. Options: sheet, doc, drive.
operationselectYesWhich action to perform on the selected resource.
spreadsheetIdtext (supports references)YesThe target Google Sheet, given as a spreadsheet ID or its full URL. Use literal text or <StepName.field>.
sheetNametext (supports references)NoOptional name of the tab within the spreadsheet to target. Use literal text or <StepName.field>.
rowDatacodeYesUse a JSON array of rows with scalar placeholders in quoted cells, or insert a single upstream placeholder that resolves to rows.
appendtoggleNotrueWhen on, rows are added to the end of the sheet; when off, rows overwrite existing cells starting at the range. Defaults to on.
rangetext (supports references)YesA1 notation pointing to the exact cells to overwrite. Required — without a row number this would overwrite row 1.
documentIdtext (supports references)YesID of the Google Doc to operate on. Use a literal ID or <StepName.field> to reference an ID from a previous step.
contenttext (multi-line, supports references)YesText to write into the document, either appended or replacing the body depending on Mode. Use literal text or <StepName.field>.
modeselectNoappendWhether the content is appended to the end of the document or replaces the entire body. Defaults to append. Options: append, replace.
fileIdtext (supports references)YesGoogle Drive file ID to read. Google Docs/Sheets are exported as text; other file types are downloaded. Use a literal ID or <StepName.field>.

Inputs and outputs

Inputs are the configurable fields above. The block produces these outputs:

Outputs

Reference an output downstream with <Google.field>.

NameTypeDescription
successbooleanWhether write succeeded
updatedRowsnumberNumber of rows updated
errorstringError message if failed
rowsarrayArray of row arrays
textstringDocument text content

Example

A minimal configuration for this block:

{
  "type": "google",
  "config": {
    "resource": "sheet",
    "operation": "...",
    "spreadsheetId": "<PreviousStep.field>",
    "rowData": "...",
    "append": true,
    "range": "<PreviousStep.field>",
    "documentId": "<PreviousStep.field>",
    "content": "<PreviousStep.field>",
    "mode": "append",
    "fileId": "<PreviousStep.field>"
  }
}

Limits and failure modes

  • Requires a connected Google integration. Calls fail if that integration is disconnected or its authorization has expired.
  • Required fields (resource, operation, spreadsheetId, rowData, range, documentId, content, fileId) must be set, or the block fails validation before it runs.
  • On failure the error output is populated; downstream blocks that reference other outputs may not receive values.

On this page