Good afternoon, Unfortunately I must admit my programming skills became a bit rusty over the years and even I managed to get some CFD code running I'm stuck with this one. What I'm looking for: A function that returns the number of available agents for a certain queue so I can use it with a buffer variable at the following flow control condition. How do I define the amount of available agents for a certain queue? Imagine queue 800 has five agents: 101, 102, 103, 104, 105 101 is logged into 800 but is talking right now - 101 available: 0 102 is not logged into 800 - 102 available: 0 103 is logged into 800, status is available, not talking at the moment - 103 available: 1 104 is logged into 800, status is available, not talking at the moment - 104 available: 1 105 is logged into 800, status is away, not talking at the moment - 105 available: 0 So in this example the query for available queue 800 agents should return "2" (Sum of 0+0+1+1+0) I consider an agent available when ALL these conditions are met: - logged into queried queue - status available - not talking I was already digging through the 3CXObjectModel.22.214.171.124_v15.chm file but honestly I'm a bit lost with selecting the right methods. Also I'm not clear on how to use C# arrays within CFD. Any help or guideline is much appreciated! Thanks in advance!