How to find 15th highest salary from a datatable using Linq in UiPath(Skip and Take Operator)

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

  1. Cint() — converts the value to Integer
  2. Skip() — skips the top n records passed in the argument
  3. 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

Youtube : How to find 15th highest salary from a datatable using Linq in UiPath(Skip and Take Operator) - YouTube

Medium: How to find 15th highest salary from a datatable using Linq in UiPath(Skip and Take Operator) - Manoj Batra - Medium

Happy Automation

1 Like