Help Centre › Functions & Formulas
This article describes the RPA Google Workspace connector function to update text styling within a shape in a Google Slides presentation.
For a full list of available functions, please read GOOGLE WORKSPACE functions.
Description
The Update text style function applies text formatting to text within a shape or text box. Supports bold, italic, underline, font family, font size, and foreground colour.
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Connector | Yes | Select | - | Select the Google Workspace connector to use |
| Presentation ID | Yes | Text | - | Google Slides presentation ID |
| Shape ID | Yes | Text | - | The object ID of the shape containing the text |
| Start index | No | Number | 0 | Start index of the text range (0 for all text) |
| End index | No | Number | End | End index of the text range (omit for all text) |
| Style | Yes | Text | - | JSON object with style properties (bold, italic, underline, fontSize, fontFamily, foregroundColor) |
Errors
- Shape not found – no shape exists with the given object ID
- Invalid range – the start or end index is outside the text bounds
Tips
- Omit start and end indices to style all text in the shape
- Colors use RGB values between 0 and 1
- fontSize is specified in points (e.g. {"magnitude":24,"unit":"PT"})
Related functions
- Insert text – Insert text into a shape
- Update shape properties – Style the shape itself