Feedback

  • Contents
 

dialer.sendCustomHandlerNotification Method

Definition

This method allows a custom script to initiate custom handlers through the custom notification initiator. Use with care. Starting a very complex, long-running handler could potentially affect the performance of a PureConnect server.

NOTE: This functionality is only available in Interaction Connect. It is not available in Scripter .NET.

Input Parameters

ObjectId

The Object Id defined in the handler's initiator.

EventId

The Notification Event defined in the handler's initiator.

dataArray

All other data is passed by an array of string values.

Value Returned

There is no return value. This call takes place asynchronously.

Example

The example calls the sendCustomHandlerNotification method from a static dialer object.

var dataArray = ['someInformation', 'moreInfo', 'lastInfo'];
scripter.dialer.sendCustomHandlerNotification('sampleObjectID', 'sampleEventID', dataArray);

The sampleObjectID and sampleEventID should correspond to the Object ID and Notification Event properties defined in the initiator that the user wants to initiate. All other user defined data can be passed as an array of strings(eg: dataArray).

NOTE: A custom script can also subscribe to a custom handler notification to listen for responses after initiating the custom handler. See dialer.subscribeToCustomHandlerNotification Method.