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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Methods for <strong>Salesforce</strong> Application InteractionsearchAndGetScreenPopUrl()ArgumentsNameurlforcecallbackTypestringbooleanfunctionDescriptionA relative URL, which specifies the location of the screen pop.Set value to true to force a screen pop, false otherwise. This argument isonly available in API version 28.0 and later.JavaScript method called upon <strong>com</strong>pletion of the method.Sample Code–JavaScriptvar callback = function (response) {if (response.result) {alert('Screen pop was set successfully.');}else {alert('Screen pop failed.' + result.error);}};function screenPop() {//Invokes API methodsforce.interaction.screenPop('/001x0000003DGQR', true, callback);}screen pop to entity IdResponseNameresulterrorTypebooleanstringDescriptiontrue if the screen pop was successful, false if the screen pop wasn’t successful.If the API call was successful, this variable is undefined. If the API call failed,this variable returns an error message.searchAndGetScreenPopUrl()UsageSearches objects specified in the SoftPhone layout for a given string. Returns search results and the relative URL to be screenpopped. Note that this method does not perform an actual screen pop. This method respects screen pop settings defined inthe SoftPhone layout. For more information, see “Designing a Custom SoftPhone Layout” in the <strong>Salesforce</strong> online help. Thismethod is only available in API version 28.0 or later.26

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

Saved successfully!

Ooh no, something went wrong!