Help Centre › Functions & 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
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Connector | Yes | Select | - | Select the Google Workspace connector to use |
| Document ID | Yes | Text | - | Google Docs document ID |
| Start index | Yes | Number | - | Start index of the paragraph range |
| End index | Yes | Number | - | End index of the paragraph range |
| Style | Yes | Text | - | 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