PureConnect

 View Only

Discussion Thread View
  • 1.  Help with getting value of displayName in an API call

    Posted 09-17-2019 13:47
    Hello everyone,
    Please forgive my noobishness, but I'm learning fast.

    I've been going through the ICWS API documentation
    I'm trying to get the value of displayName under the licenseProperties.additionalLicenses.
    For jsmith, I'm trying to get a list of all the licenses he's assigned to.

    This is what I'm getting with icws/configuration/users/jsmith/?select=licenseProperties.additionalLicenses

    {
       "configurationId": {
          "id": "jsmith",
          "displayName": "John Smith",
          "uri": "/configuration/users/jsmith"
    },
    "licenseProperties": {
       "additionalLicenses": [
       {
          "id": "I3_ACCESS_ANALYZER",
          "displayName": "Interaction Analyzer Access",
          "uri": "/configuration/license-allocations/I3_ACCESS_ANALYZER"
       },
       {
          "id": "I3_ACCESS_CLIENT_OUTLOOK_ADDON",
          "displayName": "Interaction Client Outlook Add-In",
          "uri": "/configuration/license-allocations/I3_ACCESS_CLIENT_OUTLOOK_ADDON"
       }
      ]
     }
    }

    I tried these 2 calls, but was only returned an empty list
    /icws/configuration/users/jsmith/?select=licenseProperties.additionalLicenses.displayname
    {}
    /icws/configuration/users/jsmith/licenseProperties/?select=additionalLicenses.displayname
    {}



    What I would like as a result of my query is only the details I'm interested in.

    {
       "configurationId": {
       "displayName": "John Smith"
    },
    "licenseProperties": {
       "additionalLicenses": [
       {
           "displayName": "Interaction Analyzer Access"
       },
       {
          "displayName": "Interaction Client Outlook Add-In"
       }
      ]
     }
    }



    Thanks in advance for any information.
    -Bill
    #ArchitectureandDesign
    #Integrations
    #Reporting/Analytics

    ------------------------------
    William Wyszomirski
    Excellus Health Plan Inc
    ------------------------------


  • 2.  RE: Help with getting value of displayName in an API call

    GENESYS
    Posted 10-11-2019 13:37
    Edited by Cole Callahan 10-11-2019 13:40
    Hi William,

    No question can be noobish! Thanks for bringing your question to the community :) In the most recent episode of the PureConnect Community Q&A Show, our friend Chuck Kirkpatrick discusses your question! Check it out here!

    ------------------------------
    Cole Callahan
    Genesys - Employees
    Online Community Coordinator
    ------------------------------



Need Help finding something?

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