Agent Properties
In this section, we discuss the agent class properties. The properties are discussed in alphabetical order.
Description
This property returns the agent ID as a string.
This property is read-only.
Description
This property returns the agent properties associated with this agent as an array of AgentPhysQueueProps objects.
This property is read-only.
Example
The following example returns the workload for physical queue SALES of agent properties object:
Local number &i = 1;
While &i < &myAgent.TotalPhysicalQueues
If &myAgent.AgentProps[&i].PhysicalQueueID = "SALES" Then
&AgentWorkLoad = &myAgent.AgentProps[&i].WorkLoad
break;
End-If;
End-While;
Description
This property returns the agent tasks associated with this agent as an array of AgentPhysQueueTasks objects.
This property is read-only.
Example
The following example returns the task number for the second task on physical queue SALES in the accepted task list:
Local Number &i = 1;
While &i < &myAgent.TotalPhysicalQueues
If &myAgent.AgentProps[&i].PhysicalQueueID = "SALES" then
&Tasknumber = &myAgent.AgentsTasks [&i].AcceptedTaskList.Task[2].TaskNumber
break;
End-If;
End-While;
Description
This property returns a list of buddies for this agent, as an array of string.
This property is read-only.
Example
The following example returns the total number of buddies on the list:
&BuddyTotal = &myAgent.Buddy.Len;
Description
This property returns the list of languages associated with the agent as an array of string.
This property is read-only.
Example
The following code example returns the first language code in the list of languages associated with the agent:
&Language = &myAgent.Language[1];
Description
This property returns the name of the agent as a string.
This property is read-only.
Description
This property returns the nick name of the agent as a string.
This property
Description
This property returns the physical queues to which this agent is assigned as an array of string.
This property is read-only.
Example
The following example returns the first physical queue of agent.
&PhysicalQueueID = &myAgent.PhysicalQueueID[1];
Description
This property returns the total number of physical queues to which this agent is assigned as a number.
This property is read-only.
Example
&TotalPhysicalQueues = &myAgent.TotalPhysicalQueues;