studio-web
latest
false
UiPath logo, featuring letters U and I in white

Studio Web User Guide

Last updated Aug 7, 2025

Using the Do While activity

To add a Do While activity to your workflow:
  1. On your API workflow designer canvas, select the plus (+) icon. The Add activity menu appears.
  2. Select Loop, then Do While.
  3. 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.
  4. In the Body of the Do While loop, add the activities to process the items.
  5. 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.
  6. Test the workflow to execute the activity and generate output fields for later use.
  • Using the Do While activity

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo
Trust and Security
© 2005-2025 UiPath. All rights reserved.