Google Drive File exists function

The Google Drive File exists function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA Google Drive functionality to check if a file exists.

For a full list of available functions, please read Google Drive functions.


Description

The Google Drive File exists function checks if a file exists by exact name, optionally within a specific folder. Returns true or false.


Setting it up

To use the Google Drive File exists function, follow these instructions:

{{popups:rpas/add:action=google-workspace-drive-file-exists}}

Once on a process map:

  1. Navigate to the process where you would like to add the Google Drive File exists 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 File exists option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
File nameYesText-Exact file name to search for
Folder IDNoTextEntire DriveFolder ID to search in
VariableNoText-State variable to store the result (true/false)

Output variables

VariableTypeDescription
VariableBooleanTrue if the file exists, false otherwise

Errors

ErrorDescription
Folder not foundThe specified folder ID does not exist

Tips

  • The search is case-sensitive and matches the exact file name
  • Without a folder ID, the entire Drive is searched

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.