ASSIGN

Assigns a unique value to a user-defined variable.

Supported Script Types

Generic Email Chat Phone Voicemail Work Item

Properties

Variable
The name of the variable chosen by scripter to hold the variable value.
Value
The value chosen by the scripter to be stored in the variable name.
Type
String, Numeric, or Date/Time. The type you select here changes the Value property to interpret the data entered in the value field. For example, if you select String and enter the value 1+1, the actual value assigned to the variable is 1+1. However, if you select Numeric and enter the value 1+1, the value assigned to the variable is 2.
ScreenPop
True or False. If set to TRUE, the variable and value will display in the default screen pop window assigned at the SkillClassification used to facilitate the delivery of contacts; assigned to agents based on abilities, specialties, and knowledge level.
SavetoDB
True or False. If set to TRUE, the variable and value will be stored in the NICE inContact platform database and can be accessed using the Custom Data report located in Data Download. Refer to Data Download Reports for more information.
MaxStringSize
The maximum size of the value that can be stored (in kb). The default size is 2kb.

Branches

Default
Branch that will be taken when you drag a connector from ASSIGN to another action.
OnOverflow
Branch that will be taken if the value assigned to the variable exceeds the maximum string size.

Tips and Tricks

Phone Script Example Using ASSIGN

BEGIN triggers a MENU that provides three options - press 1 for Sales, 2 for Support, or 3 for Account Management. When the user selects an option, the script uses a specific ASSIGN action to assign a value - the Skill ID (set using the Assign Properties editor) that COUNTAGENTS uses to determine the number of agents logged in with that Skill. The IF action then uses an expression (TOTAL=0) to determine which branch to take if agents are logged in - TRUE means the total agents logged in does equal 0 for that Skill, and the script will run a separate script for leaving a message. FALSE means the total agents logged in does not equal 0, and REQAGENT uses the variable value in ASSIGN to request an agent will the Skill (via the Skill ID in Newskill).

Would you like to download this script?