- Contents
Interaction Scripter Developer's Guide
User.startAccessibleQueuesEnum Enumeration Property
Definition
This property returns an enumeration of accessible queues that current agent has rights to view and modify. The enumeration is traversed using the hasMoreElements and nextElement methods of the enumeration. Each call to the nextElement method returns successive elements of the series. The hasMoreElements method will return a Boolean true if this enumeration contains more elements.
Starting with 2018 R3, this property accepts an optional callback (for use with Connect scripts only) whose single parameter contains the result. See Interaction Connect Example in Queue.startCallObjectsEnum Enumeration Property for a related example that shows how a user-defined callback is used.
Syntax
Queue.startAccessibleQueuesEnum
Usage
Read Yes
Write No
Value Assigned
None.
Value Returned
- Enumeration
-
The enumeration contains the list of accessable queues.
Java Enumeration Example (JavaScript)
// show all accessible queues for this user
var queues = scripter.myUser.startAccessibleQueuesEnum;
while (queues.hasMoreElements()) {
alert(queues.nextElement());
}