Author Topic: Get IDs of all logged in Agents?  (Read 2348 times)

Offline CallMeMaybe

  • Newbie
  • *
  • Posts: 9
  • Karma: 1
Get IDs of all logged in Agents?
« on: July 27, 2022, 03:47:31 PM »
How do I do this via the stat server?

Marked as best answer by CallMeMaybe on August 06, 2022, 01:58:28 AM

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: Get IDs of all logged in Agents?
« Reply #1 on: August 01, 2022, 01:08:00 AM »
I have never done that, but here comes a suggestion on how I would attempt to approach it and see if it actually works:

I would create one (or more) VAGs for your switch (or multiple switches) using the LoggedIn function for the script of the VAG (https://docs.genesys.com/Documentation/RTME/latest/User/ConfigureVAG)

Then, get the ExtendedCurrentStatus statistic for that VAG object and get the agents from the Actions property in object returned.


If, however, that does not work, another approach could be connect to Configuration Server, query for all Person objects with IsAgent = 2, and then use that result to query individual Agent objects (iterate through Configuration Server results) against Stat Server for any Statistical Type that has Category as CurrentNumber and LoggedIn as part of the Main Mask.