Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Data Action Response Contract Help... plz!

    Posted 10-21-2022 17:23
    No replies, thread closed.
    Does anyone know how to configure response contact to get elements with a period in their name?  i.e addresses.display
    This is from Genesys API : /api/v2/users/63a41608-e838-46a5-8107-1b5345dbf222

    When I configure the Response Contract using this element name "addresses.display"  The results of the test its displayed as  "addresses__display"
    Seems like I need to escape the period (.) but not sure how to do that...  
    Any good thoughts?

    For what it's worth, I'm trying to get the Agents Direct Dial Number to update the outbound ANI on a Preview Dialer Call.
             Maybe there is a better way??


    Response Sample 
    {
      "primaryContactInfo.mediaType": [
        "EMAIL",
        "PHONE"
      ],
      "acdAutoAnswer": false,
      "manager.id": "8976b56a-cbb6-4186-a395-49af58c73005",
      "title": "Genesys Cloud Analyst",
      "division.selfUri": "/api/v2/authorization/divisions/857f6e67-be5d-4ee0-8a1b-7b1e471f31cc",
      "addresses.extension": [
        null,
        "50058"
      ],
      "manager.selfUri": "/api/v2/users/8976b56a-cbb6-4186-a395-49af58c73005",
      "id": "63a41608-e838-46a5-8107-1b5345dbfe20",
      "state": "active",
      "department": "Patient Support",
      "addresses.countryCode": [
        "US",
        "US"
      ],
      "division.name": "",
      "email": "chris.martin@ccsmed.com",
      "addresses.type": [
        "WORK",
        "WORK2"
      ],
      "selfUri": "/api/v2/users/63a41608-e838-46a5-8107-1b5345dbfe20",
      "addresses.display": [
        "+1 342-507-2158",
        "50058"
      ],
      "primaryContactInfo.display": [
        null,
        "+1 342-507-2158"
      ],
      "primaryContactInfo.address": [
        "chris.martin@ccsmed.com",
        "+12435072158"
      ],
      "version": 40,
      "chat.jabberId": "618d6daf7eb66f1b3661de87@ccsmedical.orgspan.com",
      "addresses.mediaType": [
        "PHONE",
        "PHONE"
      ],
      "name": "Chris Martin",
      "division.id": "857f6e67-be5d-4ee0-8a1b-7b1e471f31cc",
      "addresses.address": [
        "+13425072158",
        null
      ],
      "primaryContactInfo.type": [
        "PRIMARY",
        "PRIMARY"
      ],
      "username": "chris.martin@ccsmed.com",
      "addresses\t%2Edisplay": [
        null
      ]
    }

    #Integrations
    #Outbound

    ------------------------------
    Chris Martin
    CCS Medical
    ------------------------------


  • 2.  RE: Data Action Response Contract Help... plz!

    Posted 11-04-2022 23:52
    No replies, thread closed.
    Chris,
    This is a great question to post at the Developer forum at Genesys Cloud Developer Forum
    They are great at looking at payloads for proper formatting and parsing.  

    Just a quick suggestion.  That field replies with an array, so try using addresses.display[0] to get the phone number and addresses.display[1] for the extension.

    ------------------------------
    Robert Wakefield-Carl
    Avtex Solutions, LLC
    Contact Center Innovation Architect
    https://www.Avtex.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 3.  RE: Data Action Response Contract Help... plz!

    Posted 01-05-2023 14:58
    No replies, thread closed.

    This post helped me a lot.  Was able to take the Response and modify the TranslationMap to get at the fields I was looking for in the conversation API.  I am sure the concept is the same for this one.

    Display participant Attributes in the Script - Genesys Cloud Applications / Architect - Genesys Cloud Developer Forum



    ------------------------------
    Ryan Cheesman
    Senior Manager, IT Integration Services
    Tandem Diabetes Care Inc. | positively different
    ------------------------------