Help Centre › Functions & Formulas
This article describes the RPA Google Workspace connector function to insert a shape onto a slide in a Google Slides presentation.
For a full list of available functions, please read GOOGLE WORKSPACE functions.
Description
The Insert shape function places a shape (rectangle, ellipse, arrow, callout, etc.) onto a specified slide. The shape can contain text and be styled with fill colour, border, and other properties.
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 |
| Slide ID | Yes | Text | - | The object ID of the target slide |
| Shape type | Yes | Select | RECTANGLE | Shape type: RECTANGLE, ELLIPSE, ROUND_RECTANGLE, ARROW_RIGHT, CALLOUT, STAR, etc. |
| X position | Yes | Number | - | Horizontal position in EMU |
| Y position | Yes | Number | - | Vertical position in EMU |
| Width | Yes | Number | - | Shape width in EMU |
| Height | Yes | Number | - | Shape height in EMU |
| Variable | Yes | Text | - | Variable to store the result |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | Object | Object containing the shape objectId |
Errors
- Slide not found – no slide exists with the given object ID
- Invalid shape type – the specified shape type does not exist
Tips
- Use the returned objectId to insert text into the shape or update its properties
- 1 inch = 914400 EMU
Related functions
- Update shape properties – Style the shape
- Insert text – Add text to the shape
- Insert image – Insert an image