Newer Version Available
sendCTIMessage()
Sends a message to the CTI adapter or Open CTI. This
method is for computer-telephony integration (CTI); it’s only available in API
version 24.0 or later.
Syntax
Arguments
| Name | Type | Description |
|---|---|---|
| msg | string | Message to send to the adapter. |
| callback | function | JavaScript method called when the message is sent. |
Sample Code–Visualforce
Response
This method is asynchronous, so it returns its response in an object in a callback method. The response object contains the following field:
| Name | Type | Description |
|---|---|---|
| success | boolean | true if sending the message was successful; false if sending the message wasn’t successful. |