How To Initialize Array/List – In UiPath

Sometimes when we work with List/Array, we might want to initialize them.

Let’s see how do do that!!!

Initialize List

my_List = new List(of string)(new string(){“value1″,”value2”})

Initialize Array

my_Array = new string(){“value1″,”value2”}

1.Create a List/Array with your required DataType i.e string,Int,boolean….
2.value1,value2… are your values with which you want to initialize the List/Array with


Implementation using UiPath :


UiPath Initialize a List


UiPath Initialize a Array

Hope it has helped you…

Leave a Reply