Blogs

Showing 12 results.
Items per Page 20
of 1

Forums

« Back to CTIOS Toolkit Questions

How to get SkillgroupNumber and SkillgroupName for Agent under supervisor

Combination View Flat View Tree View
Threads [ Previous | Next ]
I am writing a supervisor application in JAVA.
I want to retrieve SkillgroupNumber and SkillgroupName for all agents under the supervisor.

I tried to obtain the information on events like OnNewTeamMember and On MonitoredAgentStateChage but no luck in getting the required information.

I also tried to obtain Agent objet  OnNewTeamMember and MonitoredAgentStateChage events by using below line of code however in all condition the agent object is null.

String agentuid = rArguments.GetValueString("UniqueObjectID"));
Agent agent=(Agent) m_ctiSession.GetObjectFromObjectID(agentuid);

In case If I get the agent object I can easily retrieve the skillgroup information.

It would help me if someone provide JAVA code to obtain skillgroup information for all agents under supervisor.

You cannot get all skillgroups for all agents under a supervisor.

You can, however, obtain all skillgroups for a particular agent as long as you have skillgroupstatistics turned on and event minimization turned off

To obtain all of an agent’s skills, see the developer’s guide which has sample code in C++, COM and VB under Agent.GetSkillGroups
You will need to translate that to Java yourself.

Thanks David,

I don't want to obtain all skillgroups for all agents under a supervisor.

However I want the skillgroups associated with agent under the supervisor.

If you can see Team Real Time Status window under CTIOS out of the box desktop, there are two columns(i.e. skillgroup-name and skillgroup-number ) for each agent under supervisor.

As I am writing a supervisor application in JAVA, I want to generate my own Team Real Time Status window for the supervisor.

I am getting all other information other than skillgroup-number and skillgroup-name associated with agent under supervisor.

In which event I can get these information?

Skillgroupname is only available on the OnSkillInfoEVent and then becomes part of the Skillgroup object for the skill

If you obtain a screenshot and the log of your CTIOS Agent desktop showing the skillgroup-name and number, the log should show the skillgroupname from the onSkillInfoEvent

This assumes you have skillgroup statistics turned on.

You can also use the Session.GetSkillGroups to get the information you are seeking.

For the supervisor’s team, use the monitored agent state event to receive the SkillGroupNumber and SkillGroupID for the monitored agent. Then use the Skillgroup info returned by GetSkillGroups to match the skillgroupNumber and obtain the SkillGroupName.

Collateral


No files available