CASE

This help page is for Studio. This information is also available for Desktop Studio.

Dependencies

  • For every possible variable value, you must create a custom branch condition.
  • Always connect the Default branch of the Case action. This is particularly important if the variable in the Variable property might sometimes hold a different or unexpected value. Connecting the Default branch gives the script a way to handle unexpected values.

Supported Script Types

A square with a line branching from it that goes to three other squares.

Icon of gray-green envelope

Icon of dark green speech bubble

Icon of purple telephone handset

Icon of rust-colored voicemail symbol of two circles joined by a line

Icon of pink document with lines of text

Icon of green mobile phone with a speech bubble on its screen

Icon of purple computer monitor with a mobile device overlapping its lower right corner

Generic

Email Chat Phone Voicemail Work Item SMS Digital

Input Properties

These properties define data that the action uses when executing.

Property

Description

Add Caption

Enter a short phrase that uniquely identifies this action in the script. The caption appears on the script canvas under the action icon.

Variable The name of the variable you want CASE to pull the value from.

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.
Add Custom Condition Paths created and taken when connecting to secondary actions using Variable Branch Conditions. Click the ellipsis to open the ConnectView Collection Editor to customize these branches. When creating the custom condition, the name of the condition must be the Variable value that triggers the script to follow this branch.

Script Example

This is an example to show how this action can be used in scripts. It is not intended to be a complete script. Additional scripting may be required.

In this example, Case is connected to three different Runscript actions. If a call comes in with a DNISClosed The number dialed on inbound or outbound voice calls. of 8881234567, then the Sales Runscript action runs a designated subscript. If the DNIS is 8771234567, then the Collections Runscript action runs a different script. Finally, if call does not come in on either of those DNIS numbers, the Customer Service Runscript action triggers a subscript.

Example script using the Case action

Download this script.