Feedback

  • Contents
 

IS_Action_BeginNonDialerCallScripting

Definition

NonDialerCallScripting is now used to delay closing a script when the agent has logged out of all the campaigns that the script is associated with. IS_Action_BeginNonDialerCallScripting prevents the agent from being logged out of one campaign and into another while the agent is on a non-Dialer call. Automatic campaign login will be delayed until the agent ends the non-dialer call. Use IS_Action_BeginNonDialerCallScripting to delay campaign transitions, and IS_Action_EndNonDialerCallScripting to terminate the delay. These are bracketing functions so that multiple calls to IS_Action_BeginNonDialerCallScripting() and IS_Action_EndNonDialerCallScripting() can be nested.

Attributes

[callback]

The callback property ensures that this action executes asynchronously in Interaction Connect. Starting with 2018 R3, all Interaction Scripter actions (IS_Actions) provide a callback property for use in Connect scripts only. In the example below, statements inside the highlighted callback function block execute only after the action completes. The callback will return an error if the action fails. See Writing custom scripts for Interaction Connect or Scripter .NET.

Here's how to use the .callback property in a script for Interaction Connect:

function IS_Action_BeginNonDialerCallScripting() {
  IS_Action_BeginNonDialerCallScripting.callback = function(error) {
    if (error) {
      console.error("IS_Action_BeginNonDialerCallScripting failed.");
    } else {
      console.log("IS_Action_BeginNonDialerCallScripting succeeded.");
    }
  }
}