You can use join Datatable activity here with inner join
Inner - Keep all rows from DataTable1 and DataTable2 which meet the Join rule. Any rows that do not meet the rule are removed from the resulting table.
How do I convert this employeesToRemoveString and employeesToAddString to a dt so that I can loop the dt and do the updating in hr system (remove or add the employee).
Just try this one
First use the left join in the join data table it keeps all the data in the first dt and keep the matched values in the both dt.
so its return like this
and use the output of the join dt in the for each dt and use assign activity
CurrentRow(“List_2”)=CurrentRow(“List_1”).ToString.
so final result like this