GOOGLE WORKSPACE Update text style (Slides) function

The GOOGLE WORKSPACE Update text style (Slides) function in RPA.

Help CentreFunctions & 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

ParameterRequiredTypeDefaultDescription
ConnectorYesSelect-Select the Google Workspace connector to use
Presentation IDYesText-Google Slides presentation ID
Shape IDYesText-The object ID of the shape containing the text
Start indexNoNumber0Start index of the text range (0 for all text)
End indexNoNumberEndEnd index of the text range (omit for all text)
StyleYesText-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

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.