I have two datatables as shown in the example screenshot old and new. I am trying to compare the new one to the old one and get the result as listed in the final expected result. My problem here is that i don’t want to loop through each row/column as my data is very massive. Thousands of rows in each dtatables.
@hatakora Check this Workflow :
I have used Join datatables to First make a Left Join on the New Datatable Keeping all it’s rows, and then have performed a Linq to keep not Matching records according to the Criteria I have assumed. Check if this is What you needed. Also if this is not the Expected output, Please explain the needed output Condition. DeleteRowsMatchingCondition.zip (9.1 KB)
Thank you very much @supermanPunch that did it exactly for the result we wanted there. What if alternatively we want the result below instead?
So essentially for any row in the new dt that is the same as the old dt , the new one is the one to keep and keep also anything in the old dt that is not in the new dt as well as anything in the new dt that is not in the old dt.
@hatakora Try altering the Condition in the Linq query in assign Activity before the if Condition, most probably altering the condition would be able to get you the needed output.
I’ll try it on my end, and update if successful.
Also why doesn’t the second row contain the Scope value for Jane Doe?
i have to 2 Data Tables. dt1 and dt2… in dt1 i have 5 materials to be search in dt2 which have 500 materials
in the result table dt3 i want the matching items from dt2 with index number which it has in dt2
EXAMPLE: suppose i am searching material “ITEM-ABC” in dt2, the index number is 250.
i want in result table with 250 as index number alone with material “ITEM-ABC”