Possible bug when retrieving XML data for a team

Version 1
    This document was generated from CDN thread

    Created by: Matthew Gibson on 03-07-2013 08:55:49 AM
    I have been playing with the new API in the hope of creating my own web-based application. So far I'm really impressed with it, but I think I may have found a bug when retrieving XML data for a team. There is no data for either the resources or the CSQs which are assigned to a team. For example, the output of my XML is this:

    <team>
     <self>http://192.168.5.21:8080/adminapi/team/13</self>
     <teamId>13</teamId>
     <teamname>Finance</teamname>
     <primarySupervisor name="remote worker">
      <refURL>http://192.168.5.21:8080/adminapi/resource/agent2</refURL>
     </primarySupervisor>
     <secondarySupervisors>
      <secondrySupervisor name="Matt Gibson">
       <refURL>http://192.168.5.21:8080/adminapi/resource/matt</refURL>
      </secondrySupervisor>
     </secondarySupervisors>
    </team>

    Although there are resources and CSQs assigned to this team (they appear under the team page in AppAdmin), this data isn't returned in the XML. Is this a bug? I realise you can find which agents are assigned to the team by querying all agents to see what team each agent is assigned to, but there is no way I can think of to work out which CSQs are assigned to each team. Has anyone else tried this?

    Thanks,
    Matt

    Subject: RE: Possible bug when retrieving XML data for a team
    Replied by: Mohanasundaram Kathirvel on 04-07-2013 08:04:51 AM
    Hi Matt,

    We have verified this scenario in our setup and its working fine.
    Could you please share the UCCX version , Team config Page screenshot and the XML response to investigate further ?

    Thanks,
    Mohan

    Subject: RE: Possible bug when retrieving XML data for a team
    Replied by: Matthew Gibson on 04-07-2013 08:46:30 AM
    Hi Mohan,

    The version I'm running is 9.0.2.10000-71. The output of the XML for the team is:

    <team>
     <self>http://192.168.5.21:8080/adminapi/team/13</self>
     <teamId>13</teamId>
     <teamname>Finance</teamname>
     <primarySupervisor name="remote worker">
      <refURL>http://192.168.5.21:8080/adminapi/resource/agent2</refURL>
     </primarySupervisor>
     <secondarySupervisors>
      <secondrySupervisor name="Matt Gibson">
       <refURL>http://192.168.5.21:8080/adminapi/resource/matt</refURL>
      </secondrySupervisor>
     </secondarySupervisors>
    </team>

    I've also attached the screenshot of the team config page:



    Thanks,
    Matt

    Subject: RE: Possible bug when retrieving XML data for a team
    Replied by: Matthew Gibson on 21-10-2013 04:24:39 PM
    Does anyone have an answer to this issue? I've now upgraded from 9.0(2) to 9.0(2)SU1 but still have the same problem.

    Thanks,
    Matt

    Subject: RE: Possible bug when retrieving XML data for a team
    Replied by: Praveen Sinha on 22-10-2013 12:03:18 AM
    Hi Matt,
    Sorry for the late reply, can you please confirm if you are using the collection url (http://<uccx_server>/adminapi/team) or the specific team url (http://<uccx_server>/adminapi/team/13).

    For the collection url the xmls of individual team is minimalistic for usage/performance implications. You can get the complete xml by requesting a GET on the specific team url.

    This is not documented though and we will create a documentation bug to add this information once you confirm this works out for you.

    Thanks and Regards,
    Praveen

    Subject: RE: Possible bug when retrieving XML data for a team
    Replied by: Matthew Gibson on 22-10-2013 03:53:25 AM
    Hi Praveen,

    You are absolutely correct, I was using the collection URL, rather than the specific team URL. Not sure how I missed that one. Thanks for the quick response.

    Regards,
    Matt