Skip to content

Google Drive File and Folder operations#

Use this operation to search for files and folders in Google Drive. Refer to Google Drive for more information on the Google Drive node itself.

Search files and folders#

Use this operation to search for files and folders in a drive.

Enter these parameters:

  • Credential to connect with: Create or select an existing Google Drive credentials.
  • Resource: Select File/Folder.
  • Operation: Select Search.
  • Search Method: Choose how you want to search:
    • Search File/Folder Name: Fill out the Search Query with the name of the file or folder you want to search for. Returns files and folders that are partial matches for the query as well.
    • Advanced Search: Fill out the Query String to search for files and folders using Google query string syntax.
  • Return All: Choose whether to return all results or only up to a given limit.
  • Limit: The maximum number of items to return when Return All is disabled.
  • Filter: Choose whether to limit the scope of your search:
    • Drive: The drive you want to search in. By default, uses your personal "My Drive". Select From list to choose the drive from the dropdown list, By URL to enter the URL of the drive, or By ID to enter the driveId.
      • You can find the driveId by visiting the shared drive in your browser and copying the last URL component: https://drive.google.com/drive/u/1/folders/driveId.
    • Folder: The folder to search in. Select From list to choose the folder from the dropdown list, By URL to enter the URL of the folder, or By ID to enter the folderId.
      • You can find the folderId by visiting the shared folder in your browser and copying the last URL component: https://drive.google.com/drive/u/1/folders/folderId.
    • What to Search: Whether to search for Files and Folders, Files, or Folders.
    • Include Trashed Items: Whether to also return items in the Drive's trash.

Options#

  • Fields: Select the fields to return. Can be one or more of the following: [All], explicitlyTrashed, exportLinks, hasThumbnail, iconLink, ID, Kind, mimeType, Name, Permissions, Shared, Spaces, Starred, thumbnailLink, Trashed, Version, or webViewLink.

Refer to the Method: files.list | Google Drive API documentation for more information.