Help Centre › Functions & Formulas
This article describes the RPA Google Workspace connector function to insert an image into a Google Docs document.
For a full list of available functions, please read GOOGLE WORKSPACE functions.
Description
The Insert image function inserts an image from a URL at a specified index position in a Google Docs document. The image is downloaded and embedded in the document.
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 |
| Index | Yes | Number | - | The index position to insert the image |
| Image URL | Yes | Text | - | Public URL of the image to insert |
| Width | No | Number | - | Image width in points |
| Height | No | Number | - | Image height in points |
Errors
- Document not found – the document ID is invalid or you lack access
- Invalid image URL – the URL is not accessible or does not point to an image
- Invalid index – the index is outside the document bounds
Tips
- The image URL must be publicly accessible
- Specify both width and height to control the image size, or omit both to use the original dimensions
Related functions
- Insert text – Insert text content
- Insert page break – Insert a page break