Running LINQ is UiPath


#1

Hello guys, I would like to run a simple LINQ script but intellisense is not bringing the keywords, see below example

datatable.AsEnumerable().Select(r => r.Field(“COLUMN”)).ToArray();

datatable. does not show anything, when I also add the code it fails, is UiPath prepared for LINQ?


#2

Array[DataRow] type variable = datatable.Select("[COLUMN] = value")

I believe that’s how you would create an array of rows with that column having that value. You can also use the “and”/“or” operators to use multiple criteria.

That’s how I been using it anyway o.O

Thanks.


#3

Thanks for your reply, yes I know how to get information using the .Select, but what I want to know is, do I have to import any library additional to linq.extensions to make LINQ working as expected?