> For the complete documentation index, see [llms.txt](https://docs.visualyze.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.visualyze.ai/integrations/gsuite/activities/drive/find-files-and-folders.md).

# Find Files And Folders

Search files and folders from google drive.

Search files in google drive with specified search expressions and store the list of files with their properties Id, size, and name into a variable.

{% hint style="info" %}
This activity can only be used after the [`Create GSuite Connection Activity`](/integrations/gsuite/activities/create-gsuite-connection-activity.md)
{% endhint %}

### Input

* **GSuite Connection** : [`GSuiteConnection Variable`](/getting-started/rpa-studio/variables.md)![](https://1935494318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M927xRZSEM57y2sBcm3%2Fuploads%2Fgit-blob-20e90e25afa096ee0833e242a7763776d12b4591%2Fimage.png?alt=media)\
  A variable name that references the gsuite connection to access the gsuite resources.
* **Search Expression** : [`String Argument`](/getting-started/rpa-studio/arguments.md)![](https://1935494318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M927xRZSEM57y2sBcm3%2Fuploads%2Fgit-blob-20e90e25afa096ee0833e242a7763776d12b4591%2Fimage.png?alt=media)\
  The search query with one or more search clauses. search clauses contain a field, operator, and value part. for example **`name='SampleSpreadsheet'`** and **`name contains 'Sample'`**
* **Max Count** : [`Object Argument`](/getting-started/rpa-studio/arguments.md)![](https://1935494318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M927xRZSEM57y2sBcm3%2Fuploads%2Fgit-blob-20e90e25afa096ee0833e242a7763776d12b4591%2Fimage.png?alt=media)\
  The maximum count of files to be returned.

### Output

* **Google Files** : [`List File Variable`](/getting-started/rpa-studio/variables.md)![](https://1935494318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M927xRZSEM57y2sBcm3%2Fuploads%2Fgit-blob-20e90e25afa096ee0833e242a7763776d12b4591%2Fimage.png?alt=media)\
  The List variable that stores the search results.
* **First Result ID**: [`String Variable`](/getting-started/rpa-studio/variables.md)![](https://1935494318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M927xRZSEM57y2sBcm3%2Fuploads%2Fgit-blob-20e90e25afa096ee0833e242a7763776d12b4591%2Fimage.png?alt=media)\
  The ID of the first file is to be found.
