Summaryhow to assign a random agent of a group through PHP code.
Hello, I need information on how to assign a random agent of a group through PHP code. What I want to do is that when a button is clicked, the queue must change and an agent of that queue must be assigned. Please help me with information on how to assign an agent of a group through PHP. The code bit is the following: $ incident-> AssignedTo-> Account This piece of code allows searching and finding the value that contains the "Assigned" field of the object "Account". What I need is to assign to that field a random agent from