GOOGLE WORKSPACE Update paragraph style function

The GOOGLE WORKSPACE Update paragraph style function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA Google Workspace connector function to update paragraph styling in a Google Docs document.

For a full list of available functions, please read GOOGLE WORKSPACE functions.


Description

The Update paragraph style function applies paragraph-level formatting to content in a Google Docs document. Supports alignment, line spacing, indentation, space before/after, and named styles (heading levels).


Input parameters

ParameterRequiredTypeDefaultDescription
ConnectorYesSelect-Select the Google Workspace connector to use
Document IDYesText-Google Docs document ID
Start indexYesNumber-Start index of the paragraph range
End indexYesNumber-End index of the paragraph range
StyleYesText-JSON object with paragraph style properties (alignment, lineSpacing, namedStyleType, etc.)

Errors

  • Document not found – the document ID is invalid or you lack access
  • Invalid range – the start or end index is outside the document bounds

Tips

  • Alignment values: START, CENTER, END, JUSTIFIED
  • Use namedStyleType to set heading levels: HEADING_1 through HEADING_6, or NORMAL_TEXT
  • lineSpacing is a percentage (e.g. 115 for 1.15 spacing)

Related functions

  • Update text style – Change text formatting
  • Get content – Get document indices

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.