Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 640
Chapter 9      Agent Object
Methods
9-22
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.0(0)
GetSkillGroups
If skillgroupstats is enabled, the GetSkillGroups method allows a client to retrieve 
a list that contains references to all the skill group objects to which the agent belongs. 
To retrieve skill groups without enabling skill group statistics, turn off agent event 
minimization by setting its value to 0 on the CTIOS server in the registry key, for 
example:
HKLM\SOFTWARE\Cisco 
Systems,Inc.\Ctios\<Customer-Instancename>\CTIOS1\Server\Agent\Minimize
AgentStateEvents
Turning off even minimization makes skill group information available on the 
agent state change event. The following code example shows how to access the 
skill group properties of the agent object:
    Log m_Agent.DumpProperties
    
    Dim i As Integer
    
    For i = 1 To 20
    If m_Agent.IsValid("SkillGroup[" & i & "]") Then
       Set argskills = m_Agent.GetValueArray("SkillGroup[" & i & "]")
       Log "SkillGroup[" & i & "]:" & argskills.DumpArgs
     Else
        Log "SkillGroup[" & i & "] args doesnt exist"
     End If
     Next i
Syntax 
C++:
 
Arguments  & GetSkillGroups();
COM:
  HRESULT GetSkillGroups (/*[out,retval]*/ VARIANT * 
pVariantArgs);
VB:
GetSkillGroups () As Variant
Java:
Arguments GetSkillGroups()
.NET:
Arguments GetSkillGroups()
Parameters
None.