Assign

This block assigns a static variable to use in this scriptable event. This variable is only available for the duration of the current event. A variable set in one event is not available in other events for the same call. These variables are not available to the applications. Also see How to use variables.

To use the value of a variable set in an Assign block, add $ before and after the variable name. For example, to use a variable named Counter in another block, type $Counter$.

Note

If you want to use variables that persist and are available to the agent applications, see Optional parameters.

Properties

Values

Description

Variable Name

String

Name of the variable.

To use hyphenated names, enclose the name in quotes, for example, "My-VCS"

Variable Value

String (Boolean number)

Value of the variable.

Direct Inward Dial extensions in scripts

To work with Direct Inward Dial (DID) extensions in scripts:

  1. Use one Assign block to assign the DID number to the calldata.directextension variable.
  2. Use a second Assign block to assign a boolean value to the calldata.directextensioncall variable. A value of 0 indicates an ACD call. A value of 1 indicates a DID call.