Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Setting Default Value for Data Action

    Posted 10-16-2025 13:49

    Hello, I am creating a data action that will pass along data to a workflow but there are a few fields that might be empty and its not running with them empty. My goal is that if one of the fields is empty, it will put in a default value so that it will still run. The three fields that might be left empty are "New_User_Name", "New_User_Email", or "Existing_User_ID". I know I can set default values as shown with the "Create_New_User" input but I was hoping that you wouldn't be able to see the value from the testing page. 

    Any help would be appreciated! 

    Here is my current setup:

    Input contract:

    Configuration:

    Error received (when Existing User ID field is left empty):


    #DataActions

    ------------------------------
    Connor Maxwell
    -
    ------------------------------


  • 2.  RE: Setting Default Value for Data Action

    Posted 10-16-2025 14:03

    Hi Connor,

    I recently did this, and that was my alternative - and it worked.

    I mapped the inputs this way.

    If you're using the API in the flow, just pass the variable without quotes since it's a string field. However, if you need to pass an empty value in the flow, you must format it like this: "\"\"".



    ------------------------------
    Gabriel Garcia
    NA
    ------------------------------