Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Data Actions - Multiple Output

    Posted 08-12-2024 22:50
    No replies, thread closed.

    Good day.

    Just want to know how to set the output to only one if the values are the same especially on the attributes line in conversation details API.

    Raw


    #API/Integrations
    #ArchitectureandDesign
    #Outbound

    ------------------------------
    Eajay Mogol
    ------------------------------


  • 2.  RE: Data Actions - Multiple Output

    Posted 08-13-2024 14:33
    No replies, thread closed.

    Hello Eajay, 

    Can you provide more details?

    How are the contracts setup? 

    Cheers, 



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



  • 3.  RE: Data Actions - Multiple Output

    Posted 08-13-2024 19:34
    No replies, thread closed.

    Hello Cameron,

    FYR, please see below contracts.


    JSON
    {
      "$schema": "http://json-schema.org/draft-04/schema#",
      "type": "object",
      "properties": {
        "participants": {
          "type": "array",
          "items": {
            "title": "output",
            "type": "object",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "properties": {
              "attributes": {
                "type": "object",
                "$schema": "http://json-schema.org/draft-04/schema#",
                "properties": {
                  "dialerContactId": {
                    "type": "string"
                  }
                },
                "additionalProperties": true
              }
            },
            "additionalProperties": true
          }
        }
      },
      "additionalProperties": true
    }

    I already used it in architect and created an expression to get the first value, which works fine. However, I also want to know how to do it in contracts to get only one output for future reference.



    Thanks



    ------------------------------
    Eajay Mogol
    ------------------------------



  • 4.  RE: Data Actions - Multiple Output
    Best Answer

    Posted 08-27-2024 10:12
    No replies, thread closed.

    Hello Eajay, 

    Thank you for posting this. I don't see anything that would be giving 2 outputs. Since this is dealing with syntax I would post this in the dev forums and get some developer level input. 

    Hope this helps. 

    Cheers, 



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



  • 5.  RE: Data Actions - Multiple Output

    Posted 08-28-2024 01:32
    No replies, thread closed.

    Hello Cameron,

    Will do, thank you for your response.



    ------------------------------
    Eajay Mogol
    ------------------------------