AgentTasks property: Agent class

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;

Related Topics