# Find and Replace Text

> `UiPath.GSuite.Activities.FindAndReplaceTextConnections`

`UiPath.GSuite.Activities.FindAndReplaceTextConnections`

## Description

Finds and replaces the specified text inside the body of the document.

### Scopes

This activity requires the following scopes:

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

OR

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

OR

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

## Project compatibility

Windows | Cross-platform

## Configuration

* **Google Docs connection** - The connection for the Google Workspace account to use in the activity.
* **Document** - The document to find and replace text into. Select the Folder ![folder](https://dev-assets.cms.uipath.com/assets/images/activities/activities-docs-image-365276-e8a3baa4.webp) icon to browse your Google Drive folders and select a document. Select the See more ![see more](https://dev-assets.cms.uipath.com/assets/images/activities/activities-image-365280-3bd6c9a1.webp) button menu to switch to **Use variable** (`GDriveRemoteItem` type) or **Url or ID** input modes.
  + **Document URL or ID** - Enter the document URL. This field is visible if you select **URL or ID** input mode. This field supports `String` type input.
  + Select the **Reload File Data** option if you've updated your files and need to retrieve the latest data.

* **Find** - Enter the text to be found. This field supports `String` type input.
* **Replace with** - Enter the replacement text. This field supports `String` type input.
* **Match case** - Whether the searched text should match case. Boolean value. Default value is Off.
* **Replace** - The behavior for text replacement: All occurrences, Once.
