# Insert Image

> `UiPath.GSuite.Activities.InsertImageConnections`

`UiPath.GSuite.Activities.InsertImageConnections`

Inserts an image into a Google document.

## Scopes

This activity requires the following scopes:

* https://www.googleapis.com/auth/drive

OR

* https://www.googleapis.com/auth/drive.file

OR

* https://www.googleapis.com/auth/documents

## Project compatibility

Windows | Cross-platform

## Configuration

* **Google Docs connection** - The connection for the Google Workspace account to use in the activity.
* **Document** - The document where to add the image to. Select the plus icon for more options:
  + **URL or ID** - The initial field changes to **Document URL or ID**, where you can provide the URL or ID of the document.
  + **Use File Variable** - Enter a variable for the existing document. This field accepts input of type `IResource`.
  + **Reload File Data** - Select this option only if you have modified your documents and need to retrieve the latest data.
* **Public Image** - The Google Drive image item to be inserted. The item must be publicly shared. Select the plus icon for more options:
  + **URL or ID** - The initial field changes to **Public URL or Google Drive Item URL/ID**, where you can provide the URL or ID of the inserted image. The URL must be publicly accessible. You can use an external URL instead of a Google Drive item URL. If you provide a Google Drive item URL, it must be publicly shared.
  + **Use File Variable** - Enter a variable for the Google Drive image. This field accepts input of type `IResource`.
  + **Reload File Data** - Select this option only if you have modified your Google Drive images and need to retrieve the latest data.
* **Location** - The location where to insert the image. Select one of the following options:
  + **Beginning of document**
  + **End of document**
  + **Beginning of section**
  + **End of section**
