Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  Script/Screen Pop - String List Input

    Posted 09-15-2023 15:04

    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.

    Type: String; Expected Type: String List

    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
    ------------------------------


  • 2.  RE: Script/Screen Pop - String List Input

    Posted 09-16-2023 14:52

    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?



    ------------------------------
    Robert Wakefield-Carl
    ttec Digital
    Sr. Director - Innovation Architects
    Robert.WC@ttecdigital.com
    https://www.ttecDigital.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 3.  RE: Script/Screen Pop - String List Input

    GENESYS
    Posted 09-20-2023 15:27

    @Amelie Wisniak - for your awareness. This does look like a bug to me, but you're the expert!



    ------------------------------
    Becky Powell
    Director, Product Management
    Genesys - Employees
    ------------------------------



  • 4.  RE: Script/Screen Pop - String List Input

    GENESYS
    Posted 09-20-2023 18:48

    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
    ------------------------------



  • 5.  RE: Script/Screen Pop - String List Input

    Posted 09-21-2023 16:20

    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
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources