Google Workspace: Check if a file exists

Check if a file exists.

Help Centre › Functions & Formulas

Check if a file exists.

Add it to a process

In the process designer, open the Add step tab. Find Check if a file exists under Google Workspace › Drive, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
Folder idYesGoogle Drive ID of the folder to search in
KeyYesName of the file to check for
VariableNoName of the variable where the result will be stored

See all Google Workspace steps.

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

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.