Feedback

  • Contents
 

IS_Event_ContactDataLoaded

Definition

The IS_Event_ContactDataLoaded event is a Predictive Event that is specifically designed for use with IS_Action_RequestContactData. When Dialer has acquired all the contact Data for the current record it will send the IS_Event_ContactDataLoaded event to a custom script along with a JSON string containing all the data as an argument.

Attributes

JsonString

A JSON formatted string containing all the data from the PND table, along with the Contact Column Name, Contact Column ID, Phone Number and the phone number Type. If an exception is thrown while attempting to load the data, there will be an error property instead of data returned. This error can be trapped and logged or displayed on the script.


Example

<head>
    <script language=javascript>
        var TraceLevel = {
            Error: 0,
            Warning: 1,
            Status: 2,
            Note: 3
        };
        function IS_Event_ContactDataLoaded(json) {             scripter.trace(json, TraceLevel.Note)             var obj = eval("(" + json + ")");             if (obj.error) {                 scripter.trace('error = ' + obj.error, TraceLevel.Error);             }             var name = obj.NAME;             var ccid = obj.CCID;
            // insert other code here as needed...         }     </script> </head>

Sample JSON

[{
"BLOCKINGRESULT":"0",
"CCID": 575,
"I3_ATTEMPTS": 0,
"I3_ATTEMPTSABANDONED": 0,
"I3_ATTEMPTSBUSY": 0,
"I3_ATTEMPTSFAX": 0,
"I3_ATTEMPTSMACHINE": 0,
"I3_ATTEMPTSNOANSWER": 0,
"I3_ATTEMPTSREMOTEHANGUP": 0,
"I3_ATTEMPTSRESCHEDULED": 0,
"I3_ATTEMPTSSITCALLABLE": 0,
"I3_ATTEMPTSSYTEMHANGUP": 0,
"I3_DNCCOMEXPIRATION": "",
"I3_STATUS": "",
"I3_SUBSTATUS": "",
"I3_ZONE": "",
"NAME": "PHONE",
"PHONENUMBER": "3175557188",
"PHONENUMBERTYPE": "",
"Sex": "",
"State": "",
"TimeZone": ""
}]

Dialer will pre scrub numbers for zone blocking and DNC blocking. If the numbers meet either of these conditions, the BLOCKINGRESULT parameter will have a value that corresponds to the blocked flags. (See IS_Event_ManualOutboundCallStatus BlockedFlag attribute) You can submit that blocked flag back to IS_Action_ManualOutboundCall as the override parameter and the call will be placed. If you try to place a call that has a BLOCKINGRESULT value without submitting the override parameter, the call will fail as invalid.