From the course: UiPath: Robotic Process Automation (RPA)

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Use a loop to repeat work

Use a loop to repeat work

- [Lecturer] In many automation use cases, you're going to need to loop through a collection of similar items, and perform similar work on each item. In this lecture, I'd like to talk about the for each loop, that allows you to do exactly this. You got a preview of this, in the overview section, where I rapidly showed you how to build a simple robot. So let's go back and have a closer look at that looping mechanism. To do so I will click here, to create a blank process. I'll name it, 'DoRepetitiveWork'... And I'll set the description to, 'Try the for each loop'. When I click on create, I am presented with the usual blank canvas, and if your ribbon is not collapsed, you can double-click up here to collapse it and give yourself some more space. I'll open up my activities, and either type, 'seq' up here to find sequence, I have that saved as a favorite, so I'll just click and drag it on. And I'll rename this, 'The whole process' so it's clear that this is my root activity. Then I'll go…

Contents