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 <strong>Salesforce</strong> Application InteractionsetVisible()ArgumentsNameobjectIdrefreshFieldsrefreshRelatedListsrefreshFeedcallbackTypestringbooleanbooleanbooleanfunctionDescriptionThe record ID of the case object.Indicates that one or more fields on the case have changed.Indicates that one or more case-related lists have changed.Indicates that the case feed has changed.JavaScript method called upon <strong>com</strong>pletion of the method.Sample Code–JavaScriptRefresh CaseResponseThis method is asynchronous so it returns its response in an object in a callback method. The response object contains thefollowing fields:NameresultTypebooleanDescriptiontrue if the Case Feed page was successfully updated, false if it was not.setVisible()UsageShows 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.Note: If this method is used in a <strong>Salesforce</strong> console where multi-monitor <strong>com</strong>ponents is turned on, an error will bereturned. For more information, see “Turn on Multi-Monitor Components for a <strong>Salesforce</strong> Console” in the onlinehelp.Syntaxsforce.interaction.setVisible(value:boolean, (optional) callback:function)ArgumentsNamevaluecallbackTypebooleanfunctionDescriptionSet value to true to show the SoftPhone or set value to false to hide theSoftPhone.JavaScript method called upon <strong>com</strong>pletion of the method.30

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

Saved successfully!

Ooh no, something went wrong!