Need your help with LINQ Query for the below datatable(this is a subset of datatable):
First I need to identify case numbers having multiple reasons like Case 3 and Case 4; if yes then read those reasons. On the basis of particular reason i need to read another column from Original datatable
I know it’s bit complex and confusing. I know how we do that with for each, but we have more than 10K records. So want to use LINQ query or any other method which would be faster.
Linq query is not faster than filter datatable activity. That is a misconception. There are other methods also which can outperform Linq or Filter Datatable activity.
However, I want to understand the logic of code here. I got most of the query what we’re trying to do, the part which i am not sure is:
dt.Clone.LoadDataRow → what this part is doing or if you can explain the complete logic, that would be really helpful for me and my peers. As we all are new to UiPath journey.
LoadDataRow method returns datarow which has items set as argument.
In this case, the updated-datarows are created by LoadDataRow in LINQ Select method, then output datatable by CopyToDataTable.
Please also see the following official document if necessary.