AgentList
This help page is for Desktop Studio. This information is also available for CXone Studio.
|
Returns all agents assigned to the business unit (unless a specific agent ID is inputted into the properties) in an array containing each agent’s profile information with the following fields returned in the variable specified in the ListVar parameter:
You might use this action to check if a specific agent is active, find the agent’s email address, check which team they belong to, or a variety of other custom options. Agent List is one of the available APIs you can use within Studio. You must have Framework actions and permissions enabled on your business unit in order to leverage this action. |
Dependencies
Always make sure that the
Supported Script Types
|
|
|
|
|
|
|
Generic |
Chat | Phone | Voicemail | Work Item | SMS |
Input Properties
These properties define data that the action uses when executing.
Property |
Description |
---|---|
Caption |
Enter a short phrase that uniquely identifies this action in the script. The caption appears on the script canvas under the action icon. |
SecurityUser | The output value of the SetSecurityUser action which authenticates a selected agent based on their permissions in the security profile. This field accepts variable formatted with curly braces ( |
AgentID | The agent ID. You can use a variable for this field, such as |
Output Properties
These properties contain variables that hold data returned from executing the action. They're available for reference and use when the action completes.
Property |
Description |
---|---|
ListVar (out) | Holds the returned data. The contents of this variable are stored as an array. The default variable is Agents. |
Result Branch Conditions
Result branch conditions allow you to create branches in your script to handle different outcomes when an action executes.
Condition |
Description |
---|---|
Default |
Path taken unless the script meets a condition that requires it to take one of the other branches. It is also taken if the action's other branches are not defined. |
OnError |
Path taken when the action fails to execute properly. For example, when there is an unexpected problem such as poor connectivity, syntax errors, and so on. The _ERR variable, with a single underscore character, should be populated with a condensed explanation of the problem. |
Other Options
Depending on the data you want to obtain, additional Framework API actions may be helpful. For example, All Agent Skill Assignments, Agent States V4, Get Agents List, Get Agent Details by Agent ID, and so on.