Onhold

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

An old style phone receiver with a double-quote pause symbol.

Performs specific tasks while a call is on hold, for example, playing music or a voice message.

Dependencies

  • Onhold is an event action.
  • Without an Onhold event, the caller would hear silence if they are placed on hold (and will most likely hang up).
  • The most common use for Onhold is to play music.
  • Other actions most commonly connected to Onhold include Play, Playlog, and Menu.

Supported Script Types

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

Generic

Email Chat Phone Voicemail Work Item SMS

Properties

None

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.

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 script, you'll notice that Onhold is not connected to the main script, making it a standalone event. In this script, if a call is placed on hold, music will play until the call is taken off hold.

Would you like to download this script?