Feedback

  • Contents
 

IS_Action_Logon

Definition

This action can globally log the agent into Dialer or into the specified campaign. More specifically, the global logon performed by IS_Action_Logon will automatically log an agent into any campaigns that start after the global logon occurs. It will NOT log the agent into any currently running campaigns.

Attributes

The IS_Action_Logon action accepts these attributes:

[campaign]

An optional attribute that can be used to specify a single campaign to log on to. If the Campaign attribute is used, the IS_Action_Logon will ONLY log the agent into the specified campaign.

  • If the agent has the Logon Campaign security right, the IS_Action_Logon action can NOT provide a global login.

  • IS_Action_Logon will not automatically log the agent into all currently running campaigns. In order to accomplish that, use the IS_Action_LogonAll action.

  • This action is normally used in conjunction with the RequestLogOff action to allow the user to log on and off of Dialer without using the menu options in Interaction Scripter.

[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_Logon() {
  IS_Action_Logon.campaign = "ACME Campaign";
  IS_Action_Logon.callback = function(error) {     if (error) {       console.error("IS_Action_Logon failed.");     } else {       console.log("IS_Action_Logon succeeded.");     }   } }

Example 1

This action might be used by a "lobby" page script that allows selection of a campaign that then sends IS_Action_Logon to log the agent into a selected campaign.

IS_Action_Logon.campaign = "Newspaper Sales";

Example 2

<head>
    <meta name="IS_Action_Logon">
    <script language="javascript">
        function IS_LogOn() {
            IS_Action_Logon.click();
        }
    </script>

    <body>         <input type=button value="Logon" onclick="IS_LogOn ();">     </body>