Google Drive Search files function

The Google Drive Search files function in RPA.

Help CentreFunctions & 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:

  1. Navigate to the process where you would like to add the Google Drive Search files function
  2. Click on the green button's drop-down (right side of the green button labelled "Process")
  3. On the menu that appears, click on the "+ Activity" item
  4. From here you can select the Google Drive Search files option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
Search termYesText-Search term (matches files whose name contains this text)
VariableNoText-State variable to store the list of matching files

Output variables

VariableTypeDescription
VariableListList of matching file objects with id, name, and mimeType

Errors

ErrorDescription
No resultsNo 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

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.