Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Unable to retrieve Json format Participant Data in a Workflow.

    Posted 05-20-2025 03:03
    No replies, thread closed.

    Unable to retrieve Json format Participant Data in a Workflow.
    I am writing participant data in an Outbound Call flow - ["40006253","10005258","10005477","10005299","40006256"]

    I then run a Workflow in which i need to retrieve the Json participant data - ["40006253","10005258","10005477","10005299","40006256"]

    this is being retrieved blank


    #ArchitectureandDesign

    ------------------------------
    Reginald
    ------------------------------


  • 2.  RE: Unable to retrieve Json format Participant Data in a Workflow.

    Posted 05-20-2025 12:47
    No replies, thread closed.

    When you use the Set Participant Data tool, you are actually assigning a JSON KVP to the conversation details in the format of "Label" : "Value".  Now, you could be assigning each to their own label or you could assign a delimited string to a single label.  Either way, you need to use Get Participant or the API to get the participant date via the Label you used in the Set tool.  



    ------------------------------
    Robert Wakefield-Carl
    ttec Digital
    Sr. Director - Innovation Architects
    Robert.WC@ttecdigital.com
    https://www.ttecDigital.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 3.  RE: Unable to retrieve Json format Participant Data in a Workflow.

    Posted 05-20-2025 12:59
    No replies, thread closed.

    Thanks for you response Robert. Just confirm what you are saying, Participant data in Json format cannot be retrieve via Get Participant data in a Workflow?

    This works for all other flows:

    Inbound Call Flow

    In Queue Flow

    Common Module flow

    And must other flows, ia my understanding correct? 



    ------------------------------
    Reginald
    ------------------------------



  • 4.  RE: Unable to retrieve Json format Participant Data in a Workflow.

    Posted 05-20-2025 13:23
    No replies, thread closed.

    In the Inbound Flows and Common Modules and some other like Bot Flows, yes you can.  With a workflow, as long as you have the conversation ID, you can use the Get Participant Data took to retrieve the values.  You need to supply the label you used in the Set tool.  



    ------------------------------
    Robert Wakefield-Carl
    ttec Digital
    Sr. Director - Innovation Architects
    Robert.WC@ttecdigital.com
    https://www.ttecDigital.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 5.  RE: Unable to retrieve Json format Participant Data in a Workflow.

    Posted 05-20-2025 13:55
    No replies, thread closed.

    Hi Robert, now i am confused, i am writing Participant Data with Label = StatsData1II

     and value = ["40006253","10005258","10005477","10005299","40006256"]

     i have the conversation id and using Get Participant Data with Label = StatsData. No Data is received in the Workflow



    ------------------------------
    Reginald
    ------------------------------



  • 6.  RE: Unable to retrieve Json format Participant Data in a Workflow.

    Posted 05-20-2025 15:02
    No replies, thread closed.

    Okay, I see the big picture now.  You are providing an array to a Participant Data, which only supports strings.  You would need to bring that string in with the Get Participant Data and then parse that out to a collection and use that.  



    ------------------------------
    Robert Wakefield-Carl
    ttec Digital
    Sr. Director - Innovation Architects
    Robert.WC@ttecdigital.com
    https://www.ttecDigital.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 7.  RE: Unable to retrieve Json format Participant Data in a Workflow.
    Best Answer

    Posted 05-21-2025 06:27
    No replies, thread closed.

    Thanks for your assistance, issue resolved by adding 1 minute delay in Workflow. Looks like participant data was not present immediately.



    ------------------------------
    Reginald
    ------------------------------