Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: monasterio on November 03, 2016, 02:23:43 PM

Title: Retrieving Specific Agents using one filter
Post by: monasterio on November 03, 2016, 02:23:43 PM
Any thoughts on how to retrieve multiple agents using a single filter:

I hoped the following would have worked but it did not.

[code]
KeyValueCollection filter = new KeyValueCollection();
filter.Add("dbid", 163);
filter.Add("dbid", 1667);
filter.Add("state", 1);
RequestReadObjects requestReadObjects = RequestReadObjects.Create();
requestReadObjects.ObjectType = (int)CfgObjectType.CFGPerson;
requestReadObjects.Filter = filter;
moConfService.Protocol.Send(requestReadObjects);
[/code]

This will return only the first agent.
Title: Re: Retrieving Specific Agents using one filter
Post by: cavagnaro on November 03, 2016, 05:55:36 PM
Only one dbid can be used

Enviado de meu E6633 usando Tapatalk