Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  Creating Post Flow Data Invocation JSON data

    Posted 08-02-2024 13:09

    I'm currently using the expression builder to create a JSON object within the invocation data section of the post flow action. I am getting an error when testing the flow. What am I doing wrong?

    JsonParse("{
    	\"name\": \"" + ToString(Task.Name) + "\",
    	\"flowStart\": \"" + ToString(Flow.StartDateTimeUtc) + "\",
    	\"option\": " + ToString(Task.Option) + ",
    }")

    #ArchitectureandDesign

    ------------------------------
    Brennan Bugbee
    Polly Insurance Agency, LLC
    ------------------------------


  • 2.  RE: Creating Post Flow Data Invocation JSON data
    Best Answer

    Posted 08-02-2024 16:07

    I found the problem, Task.Option was sometimes empty when I expected a number



    ------------------------------
    Brennan Bugbee
    Polly Insurance Agency, LLC
    ------------------------------



  • 3.  RE: Creating Post Flow Data Invocation JSON data

    GENESYS
    Posted 08-05-2024 11:02

    Awesome! Thank you for posting your answer as well! I marked it best answer. 

    Cheers, 



    ------------------------------
    Cameron Tomlin
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources