12.07.2015 Views

Open CTI Developer's Guide - Salesforce.com

Open CTI Developer's Guide - Salesforce.com

Open CTI Developer's Guide - Salesforce.com

SHOW MORE
SHOW LESS
  • 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 Computer-Telephony Integration (<strong>CTI</strong>)getSoftphoneLayout()ResponseThis method is asynchronous so it returns its response in an object in a callback method. The response object contains thefollowing fields:NameresulterrorTypestringstringDescriptionIf the API call was successful, the call center settings definition is returned asa JSON string. If the API call failed, null is returned.If the API call was successful, this variable is undefined. If the API call failed,this variable returns an error message.getSoftphoneLayout()UsageReturns the SoftPhone layout as a JSON string. For more information on SoftPhone layouts, see “Designing a CustomSoftPhone Layout” in the <strong>Salesforce</strong> online help. This method is only available in API version 27.0 or later.Syntaxsforce.interaction.cti.getSoftphoneLayout(callback:function);ArgumentsNamecallbackTypefunctionDescriptionJavaScript method called upon <strong>com</strong>pletion of the method.Sample Code–JavaScriptvar callback = function (response) {alert(response.result);}// Calls getSoftphoneLayoutsforce.interaction.cti.getSoftphoneLayout(callback);ResponseThis method is asynchronous so it returns its response in an object in a callback method. The response object contains thefollowing fields:36

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!