Productivity Activities
Last updated Jul 9, 2024

Get File or Folder List



Retrieves a list of files and folders from the specified Google Drive location.


This activity requires the following scopes:


Project compatibility

Windows | Cross-platform


  • Google Drive connection - The connection for the Google Workspace account to use in the activity.
  • In location - The location on Google Drive where to search for files and folders. If left blank, the activity searches anywhere in Google Drive. Use the See more button menu button menu to Use variable (IResource type) or Url or ID input (String) modes.
    • If you select Use variable, you can use the output variable from other activities, such as Create Folder.
    • Select the Reload File Picker option if you've modified your folders and need to retrieve the latest data.

Additional options


  • Limit to first - Select the number of files or folders to return. This field supports Int32 variables and Int32 values. By default, 200 is selected. If left blank, the activity returns all the files and folders in the specified location.
  • What to return - Specifies what to return. Choose one of the available options from the dropdown menu:
    • Files - Retrieve files.
    • Files and folders - Retrieve files and folders ordered by name.
    • Folders - Retrieve folders.
  • Starred only - Specifies whether to consider only starred files and folders. By default, False is selected.
  • Additional filters - Click this field to open the Filter builder and add additional filters for the query. Supports filtering on the following fields: Creation date and time, Last modified date and time, Name, Owner, Text in file, Type.


  • Files or folders - The list of files and folders retrieved by the activity. Automatically generated output variable. You can use it as it is or save it with a different name. You can use this in other activities.


See also:
  • Description
  • Project compatibility
  • Configuration
  • Example

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.