ONSIGNAL

Receives communications from other scripts.

Supported Script Types

Generic Email Chat Phone Voicemail Work Item

Properties

SrcContactIDVar

The name of a variable to receive the source ID of the script that issued the SIGNAL.

Usually, when an ONSIGNAL event receives a SIGNAL message from another script, the value in the Src Contact ID Var property will be the ContactID of the script that sent the SIGNAL message.

When a URL or Web Service SIGNAL message is received there is no contact IDA unique numerical identifier assigned to each contact. associated with the Web Service, therefore, the value in the Src Contact ID Var property will be 0 (zero).

Parameters
The parameter values that will pass to the receiving script.

Branches

Default
The Default branch condition will always be used.

Tips and Tricks

  • ONSIGNAL is an event.
  • The ONSIGNAL event is used to receive communications from other scripts.
  • The ONSIGNAL event will interrupt any script that is currently processing when the message arrives, including messages initiated by a SIGNAL action, which sends a message to an ONSIGNAL event and will interrupt a script’s flow.
  • Parameters that are passed from a SIGNAL action will be received as SP1, SP2, ... SPn. You may need to carefully design the script so that the code can continue to execute once the SIGNAL is finished. Refer to SIGNAL for more information.
  • There can be only one ONSIGNAL event in a script.
  • The ONSIGNAL event is triggered by:
    • an external SIGNAL action
    • a SIGNAL action from a URL
    • a Web Service (web service initiated)