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.
------------------------------
Richard Wilson
American Signature Inc
------------------------------
Original Message:
Sent: 09-20-2023 18:47
From: Jim Ullyot
Subject: Script/Screen Pop - String List Input
Hi @Richard Wilson,
Thanks for the question!
Have you tried using this expression for the `CUST_TrackingNumbers` input value?
ToString(Flow.TrackingNumbers, ",")
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!
Jim Ullyot
------------------------------
Jim Ullyot
Genesys
Original Message:
Sent: 09-15-2023 15:03
From: Richard Wilson
Subject: Script/Screen Pop - String List Input
Hello,
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
#ArchitectureandDesign
------------------------------
Richard Wilson
American Signature Inc
------------------------------