studio-web
latest
false
- Release notes
- Getting started
- For administrators
- RPA workflow projects
- Creating an RPA workflow from an idea
- Creating a project
- How to start an RPA workflow
- Managing project files and folders
- Connecting RPA workflows to your accounts
- Configuring activities
- Managing the activities in a project
- Passing values between activities
- Iterating through items
- Managing the data in a project
- Configuring a project to use your data
- Using file and folder resources
- App projects
- Agentic processes
- Agents
- Solutions - Preview
- API workflows - Preview

Studio Web User Guide
Last updated Aug 7, 2025
The For Each activity iterates over arrays and executes a defined set of steps for each array element. Use the For each activity to handle API responses containing object arrays, such as lists of users, orders, or records that require individual processing.
A common use case for the For Each activity is aggregating data from multiple API calls into a structured array using the Script activity.
The For Each activity automatically collects the output of the last activity within its Body flow, and compiles it into an array available in its own output.
The following example iterates over an array of employee objects, combines the first and last names of each employee, and
returns the aggregated results in a structured response.
Open the Test configuration window, then paste and save the following JSON syntax:
{
"employees": [
{
"first_name": "Bobbie",
"last_name": "Draper",
"position": "administration",
"email": "[email protected]"
},
{
"first_name": "James",
"last_name": "Holden",
"position": "manager",
"email": "[email protected]"
}
]
}
{
"employees": [
{
"first_name": "Bobbie",
"last_name": "Draper",
"position": "administration",
"email": "[email protected]"
},
{
"first_name": "James",
"last_name": "Holden",
"position": "manager",
"email": "[email protected]"
}
]
}