A place to ask questions, connect with others, and stay in the know
I'm currently struggling to feed a flow's String Collection values (from Call Data Action) into a Set Screen Pop's Input variable. The Input variable is a String List, but the flow doesn't seem to recognize it as a String List. This ends up creating a flattened string and some unsettling UI.
The Script/Screen Pop itself can make the same Call Data Action, which works fine. The Script's Call Data Action response data is stored in the same variables as the Inputs, so that seems the narrow my struggle down to the flow's Set Screen Pop.
It feels like I'm overlooking something simple. I have some less simple solutions, but I'd rather get this working first. Or clarify my understanding of Collections & Lists
The List String and String in the script show the same in Architect:
When assigning a collection to this list string, it says it will convert to a string:
If you ask me, I say this is a bug. @Becky Powell, should Richard open a ticket of do you know who would know about it?
@Amelie Wisniak - for your awareness. This does look like a bug to me, but you're the expert!
Hi @Richard Wilson,
Thanks for the question!Have you tried using this expression for the `CUST_TrackingNumbers` input value?
I haven't run a test but am guessing the default ToString conversion function that's being used to convert the string collection to a string is putting \n in as the delimiter character between collection items in the returned string and when looking at https://help.mypurecloud.com/articles/script-input-output-variables/ where it talks about list variable inputs:
* A List variable when used as an input will have the value on the conversation split by comma.
That changing the delimiter to a comma could do the trick.
Thanks for the suggestion, @Jim Ullyot.
I have tried using toString(Flow.TrackingNumbers, ",") but it still seems to flatten it into the first index of the Script's String List (comma's included).
I'll review that link and give that another try.
Going to export the Script and see if I can find weird data properties associated with those variables.
Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources
Every year, Genesys® orchestrates more than 70 billion remarkable customer experiences for organizations in more than 100 countries. Through the power of our cloud, digital and AI technologies, organizations can realize Experience as a Service℠, our vision for empathetic customer experiences at scale. With Genesys, organizations have the power to deliver proactive, predictive, and hyper personalized experiences to deepen their customer connection across every marketing, sales, and service moment on any channel, while also improving employee productivity and engagement. By transforming back-office technology to a modern revenue velocity engine Genesys enables true intimacy at scale to foster customer trust and loyalty.