Hello
I am trying to find a way to assign the collaborator field in order - Like a TRUE round-robin
We are currently running an automation where status is “Status A” and the Collaborator field is empty
THEN - run this script (below) and update the record.
const collaborators = [
{name: "Person 1"},
{name: "Person 2"},
{name: "Person 3"},
{name: "Person 4"},
{name: "Person 5"}
]
const chosenOne = collaborators[Math.floor(Math.random() * collaborators.length)];
output.set("chosenOne", chosenOne.name)
This automation runs randomly - I need an automation that will assign 1,2,3,4,5 in order and then repeat that order.
