UiPath - Convert Array to List

uipath convert array to list finesse talks
UiPath - Convert Array To List

During development, we often need to convert one datatype to another in order to procced for further processing. Converting array to list is also no exception.

Let’s understand with example

Create required variables/arguments

in_StringArray
out_StringList
uipath-convert-array-to-list-create-variables-arguments
Create Variables/Arguments

Initialize Array

in_StringArray = New String(){"value1", "value2"}
uipath-convert-array-to-list-initialize-variables-arguments
Initialize Array

Use code to convert Array to List

out_StringList = in_StringArray.ToList()
uipath-convert-array-to-list
Convert Array to list

Comments

Popular posts from this blog

Power Automate Desktop - Working with Variables - List (Create list, Add, Remove, Clear) - Part 4

UiPath - Convert String to DateTime