Legacy Dev Forum Posts

 View Only

Sign Up

Script - Convert list of string to a string

  • 1.  Script - Convert list of string to a string

    Posted 06-05-2025 19:16

    Chad_Maggard | 2024-06-11 21:56:32 UTC | #1

    In an agent script. (Genesys cloud) How do you display a list of strings like this..(output from data action)

    2024-06-12T15:30:00,2024-06-12T14:15:00,2024-06-12T11:45:00,2024-06-12T14:00:00

    into a string, like this.

    2024-06-12T15:30:00 2024-06-12T14:15:00 2024-06-12T11:45:00 2024-06-12T14:00:00 2024-06-12T08:30:00


    jcastro | 2024-06-13 22:39:06 UTC | #2

    Chad_Maggard, post:1, topic:26725
    2024-06-12T15:30:00,2024-06-12T14:15:00,2024-06-12T11:45:00,2024-06-12T14:00:00
    If you copy a coma separated string (like in your example) directly in the default value of List String variable, Genesys will split it with the coma separator in the string. I hope this will help you

    ![image

    251x438](upload://1TXxb2I07eIJBrplkzjcgmMsfVH.png)

    ![image

    297x211](upload://zU1ngHI6Svo448R6BoJ7U3B26kF.png)


    Chad_Maggard | 2024-06-14 17:18:44 UTC | #3

    You are using a drop down box, We do not need to make it a select able item. We are using the radio button to select the row.


    system | 2024-07-15 17:19:19 UTC | #4

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 26725