studio-web
latest
false
- 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
- API workflows
- Tests

Studio Web user guide
Last updated Feb 19, 2026
Do While
The Do While activity enables workflows to repeatedly execute one or more activities. Use it for paging through API datasets or repeating actions until a specific property in the response changes.
Using the Do While activity
To add a Do While activity to your workflow:
- On your API workflow designer canvas, select the plus (+) icon. The Add activity menu appears.
- Select Loop, then Do While.
- In the Properties panel, configure the following fields:
- Condition—Use the Expression editor to specify the condition evaluated after each iteration. Usually, this condition references data from a previous API response.
- Limit—Specify a number or combine context and workflow data to set a dynamic limit for loop iterations. This helps prevent excessive iterations, handling large data sets, or avoid infinite loops.
- In the Body of the Do While loop, add the activities to process the items.
- Use the Break activity to exit the loop early. Place it within an If activity to conditionally break the loop based on a defined condition.
- Debug the workflow to execute the activity and generate output fields for later use.
Do While activity example
For an extensive example using the Do While activity, refer to Paging over HTTP calls.