Genesys Casual

 View Only

Sign Up

  • 1.  Variable Script

    Posted 2 hours ago
    I'm creating a list of transfers in Script and I've added the fields "Value" and "Display".
     
    For this list of transfers, I created a variable to display in the participant data, but it's only receiving the value from the "Value" field.
     
    I'd like to know if there's any way to retrieve the name I gave to the "Display" field, in the participant.

    #General

    ------------------------------
    Danilo Reis
    NA
    ------------------------------


  • 2.  RE: Variable Script

    Posted 2 hours ago

    Hi Danilo , check if it helps :

    In Genesys Cloud Scripts, the participant data variable only stores the Value field.
    There is no native mechanism to automatically store or retrieve the Display label in participant data.

    Why this happens

    A dropdown list in a Script has:

    • Display → what the agent sees

    • Value → what the system stores and sends to Architect, participant data, flows, etc.

    When you assign that dropdown to a variable (e.g., TransferSelected), only the Value is exposed.
    The Display label is considered UI-only and is not saved anywhere unless you intentionally save it.

    How to get the Display value (workarounds)

    Option  - Create a second variable and map the Display manually

    You can create a Custom Script Action (Set Value) that maps:

    If TransferSelected == "sales01"DisplaySelected = "Sales" If TransferSelected == "billing02"DisplaySelected = "Billing" If TransferSelected == "tech03"DisplaySelected = "Technical Support"

    Then store DisplaySelected into participant data.



    ------------------------------
    David Betoni
    Principal PS Consultant
    ------------------------------