Hi Tambo, thanks for the interest. Agents are distributed to many Agent Groups, the function uses as a target a concatenation of all agents with a specific skill set, wherever they are. Or maybe I just have not understood your clue
You got the point. I need it 'cause the customer uses that name for reporting on agent groups (they use VQ reporting too, but asking to mantain the info), 'cause resources selected for routing belongs to different outsourcers too and the association between agent and agent group, changes often. Add to this that customer can’t see (due to laws on remote control of agents) the Agent ID who managed a call (so you can link a specific call to a specific agent).
The point is I do not know where the selected agent is, inside the ird appication, at the moment the SelectDN creates the target. I just argument with stat server and skill expression, and the function creates a target without the VAG information; then I use that var to route, but the var contains just a string made by agent login concatenation.
As target for URS is provided as raw skill expression it will not automatically provide any binding o agent with VAG.
Belonging of agent to VAG in 7.x can be checked probably only with GetSkillInGroup/ExpandGroup functions but you need to know VAG name in advance for that.
To check belonging of agent to arbitrary agent group you will need 8.1.4 URS and use something like function ExpandAgent - it will return list of all agents groups agents belongs to.