I have a “list of String Array” and a “Data table”. I want to compare whether the content of both are exactly the same.
I am trying to convert the ‘list of String array’ to ‘Data table’ and compare but couldn’t.
Requesting your help in comparing the content of both (‘List of String Array’ and ‘Data Table’).
Could you be more brief on your requirement as per my understanding you to match the list of string value to a datatable as data row and if it matches you need to convert the matched values as datatable right?
Hope these below steps would help you resolve this
First let’s create a datatavle with two columns (as per the list input you shown us) and get the output with a variable of type datatable named dt
If you have a list variable named list_in
Then use a FOR EACH activity and pass that list variable as input and change the type argument as System.Collections.Generic.List
Inside the loop use a ADD DATA ROW activity and pass the property as
ArrayRow = item
Datatavle = dt
Now dt will have all the list of list items as a Datarow