How to get selected queue info and specify multiple statistic metric

I’m developing an agent desktop using PSDK 8.5 and C#.NET. In the agent desktop, there is a space to display the selected virtual queue info.

Here’s what I’ve got from CCPulse:

Environment
[-]Switches
[-]prepaid_vqs
prepaid_vq_bpo1
technicalprepaid_vq_bpo1
[-]symphony
corporate_vq_bpo2

Question 1: How can I get to “prepaid_vq”, which is under “prepaid_vqs”? As what I’ve tried below, it only reach to “prepaid_vqs” only.

RequestOpenStatistic requestOpenStatistic = RequestOpenStatistic.Create();
requestOpenStatistic.StatisticObject = StatisticObject.Create();
requestOpenStatistic.StatisticObject.ObjectId = “prepaid_vqs”;
requestOpenStatistic.StatisticObject.ObjectType = StatisticObjectType.GroupQueues;
requestOpenStatistic.StatisticObject.TenantName = “Environment”;
requestOpenStatistic.StatisticObject.TenantPassword = “”;

Question 2: How can I specify multiple statistic metric (eg. ServiceFactor, CurrNumberWaitingCalls) at one time and send them together under the same ReferenceId?

requestOpenStatistic.StatisticMetric = StatisticMetric.Create(“ServiceFactor”);

At the end, my expected result is something like below that will be displayed on the agent desktop (with the statistic data for each column):

QueueName Service Factor CurrMaxWaitingTime
prepaid_vq
corporate_vq

  1. You can retrieve all VQ under any folder via Configuration SDK, After that just use these object’s ids as “objectId” parameter
  2. You cannot make a one request with multiple stat definition. Just create particular request for each stat.

Hi Kubig, thanks for your comments. For point 1, can it be done in Config Manager? Because it will be easier for me instead of using Configuration SDK.

I do not understand what did you mean by “can it be done in Config Manager?” - Yes, you can retrieve all requested VQs within CME (Configuration Manager), but it has nothing to do with PSDK. You cannot retrieve data within PSDK “through” CME - it does not make a sense, because the CME is just a client/gui.

As replied from Genesys, this works fine:

requestOpenStatistic.StatisticObject.ObjectId = “prepaid_vq@SwitchNameFromCME”;
requestOpenStatistic.StatisticObject.ObjectType = StatisticObjectType.Queue;

Yes, it works - I think that your problem was in “how to retrieve the particulars VQs”.