5) Use Loop to Repeat


Step1: Sequence -> For each 

By default it gives us a variable "item" in which we perform looping on. It could be list of files, list of integers, collection of custom classes. 

The Type of Arguments For Each expects are
1) Object
2) Boolean
3) String
4) Int32
5) System.Data.DataTable
6) Array of [T]
7) Browse other options

                          

Say if we give TypeArgument as Int32 and in the details we mention {1,2,3,4,5} as shown below

                            

Step2: Inside Body -> Log Message
Once we add custom message and concatenate with "item" variable we get error. Reason being we cannot display variable Int32 directly with string message.

                        
 Hence we need to convert it to String for the error to go away

                          

The output is displayed as shown below

                            


No comments:

Post a Comment

Sequence and Flowcharts

  UiPath recommends that the first part of the Robot should start with Flowchart or Sequence. We can nest Sequence inside Sequence, Flowchar...