A place to ask questions, connect with others, and stay in the know
I'm looking to work with Preferred Agent routing and I'm having some trouble creating my list of agentpairs.
I'm running a Data Action which is returning me a list of users IDs. I can then loop through this list of IDs and generate a collection of agentpairs: MakeList(MakeAgentScorePair(FindUserById(Flow.queueMembers[Task.LoopIndex]),(100)))
To make a pair. However, this doesn't really work - it's overwriting the list each time so I only end up with one agentpair rather than one for each member of the list of IDs.
How can I "append" to the variable (agentpair collection) I've created rather than replace it each time?
I thought about adding each ID to a string and then each priority (coming from a separate array) into a separate string and then using MakeListAgentScorePair() but it won't accept a string collection to the priority values.
I just wish we had List.Add() (or Collection.Add()) type functions to work with.
Use the AddItem function
Thanks Melissa, that was far too obvious... But it's given me what I was looking for.
The Preferred Agent routing isn't working as I had expected (it still just seems to be alternating between agents on the queue) but I'll keep investigating.
Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources
Genesys empowers more than 7,500 organizations in over 100 countries to improve loyalty and business outcomes by creating the best experiences for customers and employees. Through Genesys Cloud, the #1 AI-powered experience orchestration platform, Genesys delivers the future of CX to organizations of all sizes so they can provide empathetic, personalized experience at scale. As the trusted, all-in-one platform born in the cloud, Genesys Cloud accelerates growth for organizations by enabling them to differentiate with the right customer experience at the right time, while driving stronger workforce engagement, efficiency and operational improvements.