getCallAttachedData()

Returns the attached data of a call represented by the call object ID or null if there isn’t an active call. The data is returned in JSON format. This method is for computer-telephony integration (CTI); it’s only available in API version 24.0 or later.

NameTypeDescription
callObjectIdstringThe call object ID of the call that retrieves the attached data.
getCallTypebooleantrue if the type of call is returned as either ‘INTERNAL,’ ‘INBOUND,’ or ‘OUTBOUND’; false otherwise. This field is only available in API version 29.0 or later.
callbackfunctionJavaScript method called upon completion of the method.

This method is asynchronous so it returns its response in an object in a callback method. The response object contains the following fields:

NameTypeDescription
datastringThe attached data of a call in JSON format.
successbooleantrue if returning the attached data was successful; false if returning the attached data wasn’t successful.
typestringThe type of call. Possible values are ‘INTERNAL’, ‘INBOUND’, and ‘OUTBOUND’.