I want to check data in file input column Owner , SR Category , SR Sub Cat,SR Issue with file master column Product Line, Category, Sub-Category,Issue
If match stamp Y in column Check in file input else not match stamp N
@fairymemay
Suggest below solution for your consideration.
Read master.xlsx as dt_Master
Loop all rows in dt_Master: concatenate each value of those 4 columns in a string, then append it into a list (list_Master)
Read input.xlsx as dt_Input
Loop all rows in dt_Input: concatenate each value of those 4 columns in a string, then check itâs in list_Master or not (list_Master.Contains(<string_variable>))
Step 2 is to generate a list of string for further validation. From the sample master, the list has 4 values:
ERComplaintServiceIR (Inter)
ERComplaintServiceData
ERComplaintServiceIDD (IDD)
ERComplaintServiceSMS
In step 4, in each row, concate the value to be validated, take 1st row as example, ITComplaintServiceSOS. Check âITComplaintServiceSOSâ in above list or not.
To append something into a list, use activity âAdd To Collectionâ.
@fairymemay
You already use âAppend Item to Listâ correctly. Theyâre similar.
Ofc linq or some other methods could archive your goal as well but I believe for each row is much more easier to understand.