I have a table as shown in the images below, and I would like to apply a “User-defined Sort” for each item like “aaa”, “iii”, “uuu” under “Sort and Filter”. Is there a way to implement this?
Use the Read RangeX activity to read Excel into a data table.
Process the data table with LINQ.
Output the results to Excel with the Write RangeX activity.
This makes it easy.
While LINQ might seem a bit challenging at first, it’s just a matter of getting used to it. I was the same way at first. If you’re unsure, you can ask a generative AI about LINQ syntax, and it can help you understand the syntax better, so the barrier is lower than it used to be.
It seems that comprehensive information on data table operations using LINQ will be covered in a UiPath explanation book scheduled to be published by Ohmsha this year at the end of the year, so it might be good to take a look at it.
For simple processes, you can also use the SELECT method without needing to utilize LINQ.
Thank you for your consistent responses.
Also, thank you for the sample flow.
I am trying to solve this using only activities, but I am struggling.
So far, I have been able to use a loop to compare the current row in the DataTable with the next row and retrieve the expected range, but it has become quite lengthy, so I am exploring other methods.
I am also considering trying to extract one item at a time from the DataTable using a filter activity.
I think there are several methods, but if we create an activity using the approach of scanning through a DataTable, it might look something like the following.