Feedback

  • Contents
 

IS_Action_RequestContactData

Definition

This action will initiate a request to dialer for additional contact columns associated with the current dialer call along with PND table data for each contact column. When the data is loaded, the IS_Event_ContactDataLoaded predictive event is called, the data will be passed as a JSON string in the argument parameter.

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_RequestContactData() {
  IS_Action_RequestContactData.callback = function(error) {
    if (error) {
      console.error("IS_Action_RequestContactData failed.");
    } else {
      console.log("IS_Action_RequestContactData succeeded.");
    }
  }
}

Example

This example creates a Get Data button that invokes the IS_Action_RequestContactData script function.

<head>
    <meta name="IS_Action_RequestContactData">
    <script language=javascript>
        function RequestData() {
            IS_Action_RequestContactData.click();
        }
    </script>
</head>
<body>     <input type=button value="Get Data" onclick="RequestData();"> </body>