Author Topic: Retrieving Specific Agents using one filter  (Read 2300 times)

Offline monasterio

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Retrieving Specific Agents using one filter
« 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.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: Retrieving Specific Agents using one filter
« Reply #1 on: November 03, 2016, 05:55:36 PM »
Only one dbid can be used

Enviado de meu E6633 usando Tapatalk