The sequence iterates through every row of the Datatable and checks if the value of the specified column has been repeated.
A column "Duplicate Status" is added in the Datatable in which the status "Duplicate" is updated for the rows having repeated value. No status is updated for the first row as it would be the original (unique) row.
Order No. Supplier Quantity
If the above Datatable is passed in the snippet and column name is updated as "Order No.". then, the below Datatable will be the output:
Order No. Supplier Quantity Duplicate Status
1. Datatable in which duplicates are to categorized (in_Datatable)
2. Column name which has to be validated (in_MatchColumnName)
Datatable with additional column "Duplicate Status" (out_Datatable)