I want to record a very simple process but I want it to start at a window in order to be able to type the number of times I want this process to repeat itself, a buble
I’d appreciate your help
I want to record a very simple process but I want it to start at a window in order to be able to type the number of times I want this process to repeat itself, a buble
I’d appreciate your help
Hi @Stivend19
Welcome to uipath community buddy…
Kindly correct if have understood your question wrongly
Buddy you can either use a flowchart that connects two or three activities with a flow decision activity in between them. This process will keep on repeating until any condition fails in flow decision activity…else wll keep on repeating
To restrict with certain number of times we can use a loop condition in sequence like while loop, do while loop or even a for each loop that will keep on repeating until certain number of times
This xaml would help you buddy, try to run it buddy
Sumar.zip (20.5 KB)
Hope this would help you…Kindly revert for any queries
Cheers
So you wish to have an input dialog box pop up and a user types an integer into it. Then the robot would repeat the activity however many times the user typed in - is that correct?
UiPath does not currently have a ‘repeat’ activity doing exactly that, but it does have a ‘retry’ activity which is similar. However, I would recommend creating either a ‘for each’ loop, or a ‘do while’ loop to achieve what you’re looking for.
Use the input dialog box activity to prompt the user for an input. This will be saved as type string. Make sure to check if it is actually an integer - if it is anything other than an integer as the user to type it in again. This should be done with a do while loop - see the below pseudo code
Create 2 variables. One of type string called UserInputString and one of type int32 called UserInputStringAsIntVariable (you can of course name these whatever you want)
Do
Input Dialog activity to prompt user for an integer. Save string variable as UserInputString
While Integer.TryParse(UserInputString,UserInputStringAsIntVariable)
Loop
Now you have an integer that the user designated as the number of times to repeat.
In for each loop (of type integer) do the following:
For each *iteration* of enumerable.range(1,UserInputStringAsIntVariable)
--put your activites you want repeated in here--
Next iteration