1<apex:page>
2 <A HREF="#" onClick="testSetCallObjectIds();return false">
3 Click here to set call object Ids</A>
4
5 <apex:includeScript value="/support/console/41.0/integration.js"/>
6 <script type="text/javascript">
7
8 function checkResult(result) {
9 if (result.success) {
10 alert('Call object ids set successfully!');
11 } else {
12 alert('Call object ids cannot be set!');
13 }
14 }
15
16 function testSetCallObjectIds() {
17 sforce.console.cti.setCallObjectIds(['call.1', 'call.2', 'call.3'], checkResult);
18 }
19 </script>
20</apex:page>