PureConnect

Discussion Thread View
Expand all | Collapse all

IceLib - Managed IP Phones and Stations

  • 1.  IceLib - Managed IP Phones and Stations

    Posted 07-20-2020 05:20
    Edited by James Dunn 07-20-2020 05:21
    I've been cautiously trying IceLib API this week and so far I've been able to muddle through most things. However, I've hit two problems that I can't seem to get by.

    1)
    I'm trying to build a way to retrieve & export data from Administrator. There are ConfigurationLists in the Configuration namespace for Users, Workgroups, Roles, Skills etc, so I'm using these - but there doesn't seem to be one for Managed IP Phones. I wanted to be able to extract (and display) Managed IP Phone information. But, this doesn't seem to exist in the API. Am I crazy and overlooking something obvious?

    2)
    Secondly, with stations, my app doesn't seem to actually put any data. I'm not sure why as using essentially the same code for users, workgroups, roles all works fine. Is there something special about stations in the API that I'm missing?

    I.e. This data is meant to populate a ComboBox with a list of station IDs, but it returns nothing. If I change it to a UserConfigurationList it can pull user Ids with no problem... The session is working as I'm able to retrieve other data with it. I have rights to view (and edit) stations in Administrator.

    Any help you can offer would be greatly appreciated.

            private void StationComboBoxGetItems(Session session)
            {
                var _configurationManager = ConfigurationManager.GetInstance(session);
                var configurationStationList = new StationConfigurationList(_configurationManager);
                var newQuerySettings = configurationStationList.CreateQuerySettings();
                newQuerySettings.SetPropertiesToRetrieve(StationConfiguration.Property.Id);
                newQuerySettings.SetRightsFilterToView();
                configurationStationList.StartCaching(newQuerySettings);
    
    
                List<String> genesysStations = new List<string>();
    
                foreach (var configurationObject in configurationStationList.GetConfigurationList())
                {
                    genesysStations.Add(configurationObject.ConfigurationId.Id);
                }
                genesysStations.Sort();
    
                StationComboBox.ItemsSource = genesysStations;
    
                configurationStationList.StopCaching();
            }

    #Integrations

    ------------------------------
    James Dunn

    ------------------------------


  • 2.  RE: IceLib - Managed IP Phones and Stations

    Posted 09-01-2020 07:21
    Not a lot of interest in this thread but I spoke with Genesys Care.

    • No API for Managed IP phones
    • Solution to returning no station configuration was to add 'View' permission for all Station Queues in Administrator (even though I could already view the stations in Administrator...)

    Thanks.

    ------------------------------
    James Dunn
    Pitney Bowes Inc.
    ------------------------------



  • 3.  RE: IceLib - Managed IP Phones and Stations

    GENESYS
    Posted 09-01-2020 13:07
    James,

    Have you looked to see if you can do what you need using ICWS?

    ------------------------------
    Paul Simpson
    Senior Technical Instructor
    ------------------------------