Problem statement : We have a datatable that contains the employee details along with salary and we need to fetch the details of the employee having 15th highest salary
Drag the assign activity to the workflow, write the following query
Here is used following 3 methods
- Cint() — converts the value to Integer
- Skip() — skips the top n records passed in the argument
- Take() — gets the number of records passed in the argument
Run the program and see the live action
You can download the code here : UiPathSamples/10- Find nth Record Using Linq at main · manojbatra071/UiPathSamples · GitHub
Happy Automation