Genesys Cloud - Developer Community!

 View Only

Sign Up

Expand all | Collapse all

Specifications for properties when executing data actions from scripts and the display results in the script

  • 1.  Specifications for properties when executing data actions from scripts and the display results in the script

    Posted 10-17-2025 01:45

    When you select the "Execute Data Action" action within a script, you can choose from the following three properties:  
    Interpolated Text, Text Expression, and Variable.

    It was found that when you enter a value that does not exist in Genesys Cloud, changing this property also changes the result displayed in the script.  
    - Text Expression: The value set in translationMapDefaults was displayed in the script.  
    - Interpolated Text: The script displayed as blank.

    Q1.  
    When entering a value that does not exist in Genesys Cloud, what is the correct behavior/specification for what is displayed in the script for each of the three properties (Interpolated Text, Text Expression, Variable)?

    Q2.  
    When executing the "Execute Data Action" action within a script, which of the three properties is recommended?


    #Scripts

    ------------------------------
    Nobuhisa Iwashima
    x
    ------------------------------


  • 2.  RE: Specifications for properties when executing data actions from scripts and the display results in the script

    Posted 10-17-2025 10:54

    Hi @Nobuhisa Iwashima

    Summary:

    • Text Expression: static text assigned to a variable.

    • Variable: assigns the value of a variable.

    • Interpolated Text: combines static text and variable values.

    Data Actions:

    • Input: variable name that stores the identifier to fetch data.

    • Output: variable name that stores the received data.

    The choice depends on the business rule.

    I usually use Variable to send to the API values already collected as system variables, participant data, or fields filled in the script.

    Details: Genesys Cloud documentation



    ------------------------------
    Luiz Rosa
    Full stack developer
    ------------------------------



  • 3.  RE: Specifications for properties when executing data actions from scripts and the display results in the script

    Posted 25 days ago

    Hi @Luiz Rosa,

    Thank you for your response. Regarding Q2, I was able to understand your knowledge.

    -----

    To Genesys developers: 

    We have not yet received an answer regarding the specifications for Q1. We would still like your response, so please provide an answer.



    ------------------------------
    Nobuhisa Iwashima
    x
    ------------------------------