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

Productivity Activities

Last updated Dec 18, 2024

For Each File or Folder

UiPath.GSuite.Activities.ForEachFileFolderConnections

Description

Executes one or more activities for each file or folder in a specified folder.

Add the activities to repeat inside For Each File or Folder and, when you configure them, select Use Variable > CurrentItem from the See more button menu to indicate that you want to repeat the actions for each file or folder in the iteration. For details, see Iterate through items with For Each activities.

Note: This activity uses pagination for processing large numbers of items and mitigating performance issues.

Project compatibility

Windows | Cross-platform

Configuration

  • Connection - The connection for the Google Workspace account to use in the activity.
  • In location - The location where to search for files and folders. If left blank, the activity searches anywhere in Google Drive. This field accepts IResource input.
  • Body - Activities added in this section are executed for each file or folder found in the selected location.
Additional options

Options

  • Limit to first - Select the number of files or folders to iterate through. By default, 200 is selected. This field supports Int32 variables and Int32 values.
  • What to return - Specifies whether to return only files, only folders, or both files and folders. By default, Files and folders is selected.
  • Starred only - Specifies whether to consider only starred files and folders. This field supports Boolean values. By default, False is selected.
  • Additional filters - Click this field to open the Filter builder and add additional filters for the query.

Output

  • Number of items processed - The number of items processed by the activity.

Example



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.