Skip to main content
May 26, 2023
Solved

requesting for logic

  • May 26, 2023
  • 6 replies
  • 0 views

How can we assign cases to the users in round robin method.

Could anyone of you Please suggest the Logic/Code

Thanks in Advance

    Best answer by mathieud0001

    You could just store the last assignee in a table or retrieve it via a query or task report and calculate the next assignee by finding the person in the group after the last assignee.

    6 replies

    harshitb6843
    May 26, 2023

    There can be multiple ways of doing it but why don't you assign the tasks to the group instead of users and then let them automatically pick based on the availability and the capacity? 

    May 26, 2023

    as the requests were expected in millions on daily basis. so they suggested us to do in round robin method instead of mapping to group

    harshitb6843
    May 26, 2023

    For that, you can create a list of users in a constant or a table or somewhere and can store the active index somewhere. That way, you can always use that index and keep incrementing it. Once the value of it reaches to the count of total users, then set it back to 1

    mathieud0001
    May 26, 2023

    You could just store the last assignee in a table or retrieve it via a query or task report and calculate the next assignee by finding the person in the group after the last assignee.