Tailflow
Skip to article
Browse documentation

Google Drive · Action

Find file

Finds a file or folder by its name and hands its id and link to the steps below. When several match, the most recently changed one is used.

When to use it

Finding the file an earlier run saved, such as today's report, so a later step can share or copy it.

At a glance

IntegrationGoogle Drive
Credits1
ConnectionGoogle Drive, by signing in

Settings

nameRequiredAccepts event fields
Name. The name to look for.
match
Match.
folder
Folder. Leave blank to search everywhere these steps saved. Only folders made by Google Drive steps are listed. Picked from your account's own list, or typed.

What it hands on

Actions run in order, and each one can read what the actions above it produced. This one writes the fields below; a later action reaches them as {{ actions.drive_find_file_1.id }} — the action’s key, then which one it is if you use more than one of the same kind.

id
The file's id. It is what Copy file and Share file take.
name
The file's name in Drive.
link
The address that opens the file in a browser.
mime_type
What kind of file it is, for example application/json, or application/vnd.google-apps.folder for a folder.

Good to know

  • Only files and folders made by Google Drive steps are searched. A file you made yourself in Drive is never found.
  • Both ways of matching mind capitals. Name starts with looks at the start of the whole name only, so Daily transfers is found by Daily, not by transfers.
  • When many files nearly match, only the 100 most recently changed are checked. If none of them matches, the step fails and asks you to choose a folder to narrow the search.
  • Files in the bin are left out.
  • No match fails the step, so the steps below never act on nothing. The flow keeps running.
  • Validate run does not search, so a step below that reads its fields shows empty there. Test run searches.