Help Centre › Building 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:
- Navigate to the process where you would like to add the LOOP Each folder in a folder function
- Click on the green button’s drop-down (right side of the green button labelled “Process”)
- On the menu that appears, click on the “+ Activity” item
- From here you can select the LOOP Each folder in a folder option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Folder | Yes | Text | - | The folder path to loop through |
| Variable | Yes | Text | - | Variable to store the current folder name |
| Include sub-folders | No | Switch | Off | Recurse into sub-folders |
| Max iterations | No | Number | - | Maximum iterations |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | Text | The current folder name/path in each iteration |
Errors
| Error | Description |
|---|---|
| Folder not found | The specified folder does not exist |
Tips
- Loops through all sub-folders in the specified folder
- Enable sub-folders for recursive iteration