---
schema_version: "1"
id: 720487251c3c5d11e265f900b41e3af2f66c582675aa9e268aef6721b71529d8
title: Search in Google Drive
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/rpa-builder/latest/toolbox-google-workspace-search-in-google-drive.md
canonical_url: https://docs.mulesoft.com/rpa-builder/latest/toolbox-google-workspace-search-in-google-drive
source_site: docs.mulesoft.com
content_type: documentation
content_hash: e55758e6350800f9e3a63934af71c28f7ec7f323bf1b849ceee853b522d79f67
description: MuleSoft Documentation Site
release: "6.7"
latest: true
---
---
product: RPA Builder
version: 6.7
is-latest-version: true
---

# Search in Google Drive

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Search for files or folders in your Google Drive, including your shared drives. This action step
returns the number of matches found, the file or folder IDs, and the names of the files or folders
found.

You can add variables, filters, and operators to your search query.

## Configure Authentication Settings

Configure your authentication settings for the Google API service account in the **Authentication
Settings** panel. Select **Pin credentials** to specify the activity parameter containing the
credentials, or select **Use custom settings** to provide the information inline. You can either
import a JSON file with your Google API credentials information or specify the authentication
information manually.

## Configure Search Settings

To configure search settings in the wizard:

1.  Enter your search terms in the **Search Query** textbox.

    The **Insert filters** and **Insert operators** dropdown lists contain the most common filters
    and operators. However, you can use any supported Google
    [search query terms and operators](https://developers.google.com/workspace/drive/api/guides/ref-search-terms).

2.  To search in all shared drives, in addition to **My Drive**, select **Include all files from
    share drives**.

3.  Select the criteria to sort your results in the **Order by** dropdown list.

## Properties

- **Authentication Settings**

  - **Auth Provider x509 Cert URL**

    Authentication provider certificate URL for the Google API credentials.

  - **Auth URI**

    OAuth2 authentication URI for the Google API credentials.

  - **Client Email**

    Client email of the Google API credentials.

  - **Client ID**

    Client ID of the Google API credentials.

  - **Client x509 Cert URL**

    Client certificate URL for the Google API credentials.

  - **Credential Type**

    Type of Google API credentials. For example, `service_account`.

  - **Google API Service Account Credentials**

    Activity parameter containing all Google API credentials.

  - **Project ID**

    Project ID of the Google API credentials.

  - **Token URI**

    OAuth2 token URI for the Google API credentials.

  - **Universe Domain**

    Universe domain of the Google API credentials.

- **Common**

  See [Common Properties](https://docs.mulesoft.com/rpa-builder/latest/common-properties)

  - **Include all files from shared drives**

    Option to search files and folders in your shared drives in addition to My Drive

  - **Search Query**

    String containing the search query

    Use the wizard for assistance while building your query. You can use any of the supported Google
    [search query terms and operators](https://developers.google.com/workspace/drive/api/guides/ref-search-terms).

## Inbound Variables

- **{A} replaced by** …​ **{Z} replaced by**

- **Credential Type**

- **Project ID**

- **Private Key ID**

- **Private Key**

- **Token URI**

- **Auth Provider x509 Cert URL**

- **Auth URI**

- **Client Email**

- **Client ID**

- **Client x509 Cert URL**

- **Universe Domain**

- **Google API Service Account Credentials**

## Outbound Variables

- **Amount found matches**

  Number of files or folders found

- **IDs of files or folders found**

  Array of strings containing the IDs of the files or folders found

- **Names of files or folders found**

  Array of strings containing the names of the files or folders found

- **Success**

  String indicating if the search was successful and returned no errors (`True`)

  To confirm if the search returns any results, verify if the **Amount found matches** is higher
  than zero. The **Success** variable returns (`True`) even if there are no results in a successful
  search.

## See Also

- [Activity Parameters](https://docs.mulesoft.com/rpa-builder/latest/toolbox-variable-handling-activity-parameters)

- [Google Workspace](https://docs.mulesoft.com/rpa-builder/latest/toolbox-google-drive-operations)
