I am working on a SAP Automation.
Where I have got a Table.
Now that table I am extracting using Table Extraction and getting the result in Datatable Variable.
now my problem statement is that I want to find the index of row based on different condition .
For Example
from the above Screenshot.
I will be knowing that Product category will be LANDSCAPING and Brand will be FISKARS.
how will I find the index of this particular row.
Note: that Columns can increase so I will have to include more conditions .
Try this
Index=Dt1.AsEnumerable.tolist.findindex(function(r) r(“Product category”).tostring.equals(“LANDSCRAPING”) and r(“Brand”).tostring.equals(“FISKARS”))