So there are various ways to define the Array, List and Dictionary in UiPath.
Take Assign Activity and Put your variable at left side with a data type defined with "New" keyword then write the below lines at the right side.
Array
New String(){"Blue", "Green"}
List
New List(Of String) ({“value1”,”value2”})
New List(Of String) from {“value1”,”value2”}
New List(Of String)(New String(){“value1”,”value2”})
Dictionary
New Dictionary(Of String, Object)
Thanks!
Comments
Post a Comment