Genesys Cloud - Developer Community!

 View Only

Sign Up

work with String list in script coming from a campaign contact list

  • 1.  work with String list in script coming from a campaign contact list

    Posted 04-16-2025 03:34
    Edited by Nicolas Langlais 04-16-2025 03:36

    Hi,

    I am trying to create a drop down menu with data coming from an outbound campaign contact list.

    the data contained in the column is comma seperated (contract1,contract2,contract3)

    I tried a bunch of different things but nothing seems to be working:
    Created a string list variable in scripter that has the same name as the contact list.
    Created an outbound architect flow that splits the data before sending the data in a screenpop.

    The issue is that Genesys seems to have a problem recognizing that I'm using a string list in Scripter and not a string (see screen capture). this creates a situation where no matter what I try to do, genesys will always pass the data as a string containing only 1 element "contract1,contract2,contract3"... even if in architect I'm associating a string list... I almost believe this might be a bug? The fact that architect sees my string list as a simple string.


    screen capture showing that the variable is a string list
    screen capture showing that architect sees it as a string



    Has anyone figured out a way to transfer a string list in scripter?

    If not, has anyone been able to reliably create a dynamic string list from a string with comma separated elements in scripter?

    I found a way using dynamic variables, but it's not length dynamic (since I haven't figured out a way to loop in scripter I have to create a bunch of dynamic variables for each elements of the list)... and very impracticable.


    #Scripts

    ------------------------------
    Nicolas Langlais
    -
    ------------------------------