If you’re extracting the rows and then processing them individually, you could use a switch statement to determine the route. Can get very ugly very quickly if you have a lot of potential routes.
A flowchart is potentially cleaner.
Would recommend using subflows instead of building large parts of code into the switch/flowchart.
You could also consider moving to a dispatcher/performer model so that your dispatcher handles the if then logic, creating queue items for specific robots to execute afterward.
For the use case which you have mentioned above i am attaching a file for your response. Just add the excel file path to get the output.
Please let me know whether this is the desired output you want or not.
Thanks and Regards,
Shubham Dutta Main.xaml (14.5 KB)
If you want to get a particular Data Row based on certain condition then you can also try the below method
(from R1 in TestDT.AsEnumerable where ((R1.Item(“Dept”).ToString.Equals(“HR”)) And (R1.Item(“Date”).ToString.Equals(“2021”))) Select R1 )
This will return you datarow you can perform further actions using this datarow.