Help Centre › Functions & Formulas
This article describes the RPA Google Workspace connector function to insert a video onto a slide in a Google Slides presentation.
For a full list of available functions, please read GOOGLE WORKSPACE functions.
Description
The Insert video function embeds a YouTube video onto a specified slide. The video appears as a clickable element that plays within the presentation.
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 |
| Video URL | Yes | Text | - | YouTube video URL or video ID |
| X position | No | Number | 0 | Horizontal position in EMU |
| Y position | No | Number | 0 | Vertical position in EMU |
| Width | No | Number | - | Video element width in EMU |
| Height | No | Number | - | Video element height in EMU |
| Variable | Yes | Text | - | Variable to store the result |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | Object | Object containing the video element objectId |
Errors
- Slide not found – no slide exists with the given object ID
- Invalid video URL – the URL is not a valid YouTube video
Tips
- Currently only YouTube videos are supported
- The video appears as a thumbnail with a play button
Related functions
- Insert image – Insert an image
- Insert shape – Insert a shape