LOOP Each folder in a folder function

The LOOP Each folder in a folder function in RPA.

Help CentreBuilding Processes

This article describes the RPA Loop functionality to each folder in a folder.

For a full list of available functions, please read LOOP functions.


Description

The LOOP Each folder in a folder function allows you to each folder in a folder.


Setting it up

To use the LOOP Each folder in a folder function, follow these instructions:

{{popups:rpas/add:action=loop-folders}}

Once on a process map:

  1. Navigate to the process where you would like to add the LOOP Each folder in a folder function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the LOOP Each folder in a folder option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
FolderYesText-The folder path to loop through
VariableYesText-Variable to store the current folder name
Include sub-foldersNoSwitchOffRecurse into sub-folders
Max iterationsNoNumber-Maximum iterations

Output variables

VariableTypeDescription
VariableTextThe current folder name/path in each iteration

Errors

ErrorDescription
Folder not foundThe specified folder does not exist

Tips

  • Loops through all sub-folders in the specified folder
  • Enable sub-folders for recursive iteration

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.