Open CTI Developer's Guide - Salesforce.com
Open CTI Developer's Guide - Salesforce.com
Open CTI Developer's Guide - Salesforce.com
- No tags were found...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Methods for <strong>Salesforce</strong> Application InteractiongetPageInfo()<strong>CTI</strong> MethodssetVisible()Shows or hides the SoftPhone in the <strong>Salesforce</strong> console. For more information,see “<strong>Salesforce</strong> Console Overview” in the <strong>Salesforce</strong> online help.Case Feed MethodsonObjectUpdate()refreshObject()Registers a function to call when case fields, the case feed, or case-related list datahas changed on a Case Feed page.Notifies the Case Feed page that case fields, the case feed, or case-related listdata has changed, and forces an update of these on the page.getPageInfo()UsageReturns information about the current page as a JSON string.Syntaxsforce.interaction.getPageInfo(callback:function);ArgumentsNamecallbackTypefunctionDescriptionJavaScript method called upon <strong>com</strong>pletion of the method.Sample Code–JavaScriptvar callback = function (response) {if (response.result) {alert(response.result);} else {alert(response.error);}};function getPageInfo() {//Invokes API methodsforce.interaction.getPageInfo(callback);}getPageInfo16