activities
latest
false
UiPath logo, featuring letters U and I in white

Productivity Activities

Last updated Dec 6, 2024

Find Files and Folders

UiPath.GSuite.Activities.FindFiles

Description

Looks for files on a Google Drive instance and returns the file information, including the name, size, and ID.

Scopes

This activity requires the following scopes:

  • https://www.googleapis.com/auth/drive.readonly

OR

  • https://www.googleapis.com/auth/drive.metadata.readonly

OR

  • https://www.googleapis.com/auth/drive.appdata

OR

  • https://www.googleapis.com/auth/drive.metadata

OR

  • https://www.googleapis.com/auth/drive.photos.readonly

OR

  • https://www.googleapis.com/auth/drive

Project compatibility

Windows - Legacy | Windows

Configuration

Properties

Common
  • ContinueOnError - If set, the remaining activities are executed if the current activity fails. This field supports Boolean values.
  • DisplayName - The display name of the activity. This property supports String variables and string formatted values.
Input
  • MaxResults - Specifies the maximum number of files that you want to return. This property supports Int32 variables and Int32 formatted values. The default value is 50.
  • SearchExpression - Specifies the search parameters (e.g., file types, file names) that you want to use to locate files and folders. This property supports String variables and string formatted values. The default value is "name = 'TestSpreadsheet'". For more information about building your search query, see Search for shared drives and Search for Files in the Google Drive API documentation.
Misc
  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level. This field supports Boolean values.
Options
  • SupportsTeamDrives - If selected, the activity can operate with files hosted on Team Drives. This field supports Boolean values.
Output
  • FeelingLucky - The File ID of the first result. This property supports String variables. You can use this variable as an input property value in other Google Workspace activities.
  • Result - The files that match your search results. This property supports Google Files array variables. You can use this variable as an input property value in other Google Workspace activities. The Google Files data structure includes information about the file (e.g., type, size, and ID). For more information about the data structure, see Files > Resource representation in the Google Drive API documentation.
  • Description
  • Project compatibility
  • Configuration

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.