Help Centre › Functions & Formulas
This article describes the RPA Google Drive functionality to search files.
For a full list of available functions, please read Google Drive functions.
Description
The Google Drive Search files function searches for files by name. Pagination is handled automatically to return all matching results.
Setting it up
To use the Google Drive Search files function, follow these instructions:
{{popups:rpas/add:action=google-workspace-drive-search}}
Once on a process map:
- Navigate to the process where you would like to add the Google Drive Search files function
- Click on the green button's drop-down (right side of the green button labelled "Process")
- On the menu that appears, click on the "+ Activity" item
- From here you can select the Google Drive Search files option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Search term | Yes | Text | - | Search term (matches files whose name contains this text) |
| Variable | No | Text | - | State variable to store the list of matching files |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | List | List of matching file objects with id, name, and mimeType |
Errors
| Error | Description |
|---|---|
| No results | No files matched the search term |
Tips
- The search matches files whose name contains the search term (partial match)
- For more advanced queries, use List files with a query filter