transferCommEvent Method

This method is called by the toolbar to inform Fusion Service that a transfer of the communication has been initiated. Fusion Service records the notification, but provides no response.

After a call is made to this method, the toolbar calls the closeCommEvent() method with the reason code of TRANSFERRED.

Here's the parameters for this method:

Parameter

Description

channel

The name of the channel for which the method is called.

appClassification

The name of the application classification defined for the current toolbar. If this parameter is passed as null, it's assumed that there is no application classification. For a list of preconfigured values, see Application Classification Code.

eventId

A toolbar generated media event identifier. The same parameter value must be used for all method invocations for a communication. This parameter is stored with internal interaction record.

inData

An object containing information about incoming events for customer identifiable data, as well as attributes containing the names of system or user-defined defined tokens.

callback

Returns results to the caller toolbar.

channelType

The type of channel for which the method is being called. Note that if, for example, the channel is PHONE but the channelType isn't provided, the default value is set to ORA_SVC_PHONE. For more information, see Channel Type Data.

Here's the member attributes of the response object. The object has no return value.

Member Attribute

Description

result

The server side running status. Result values are success or error.

error

Contains the error message if the result value is an error. If not, then the value is undefined. For more information about error message codes, see Error Messages.

Here's sample code for this method:

<html>
<head>
<script type="text/javascript" src="http://domain:port/ora_support/js/mcaInteractionV1.js"> 
</script>
<script type="text/javascript">
function transferCommEvent() {
      var inData = {};
      inData.SVCMCA_ANI = '5551234';
      inData.SVCMCA_CONTACT_ID = '1234567890';
      inData.SVCMCA_CONTACT_NAME = 'John Smith';
      inData.transferredId = '5550987';
      svcMca.tlb.api.transferCommEvent('PHONE', 'ORA_SERVICE', '12345-1234-67890', inData, function (response) {
        if (response.result == 'success') {
          alert('Success! Call transferred to other agent.');
        } else {
          alert('Operation finished with error: ' + response.error);
        }
      },'ORA_SVC_PHONE');
    }</script>
</head>
<body>
<input type="button" value="Notify transfer" onclick="transferCommEvent()"/>
</body>
</html>