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 InteractionsaveLog()var callback = function (response) {if (response.result) {alert(response.result);} else {alert(response.error);}};function runApex() {//Invokes API methodsforce.interaction.runApex('AccountRetrieval', 'getAccount', 'name=acme',callback);}runApex4. Output is returned. In this example, one account named, Acme, was found:[{"attributes":{"type":"Account","url":"/services/data/v25.0/sobjects/Account/001x0000003DGQRAA4"},"Id":"001x0000003DGQRAA4","Name":"Acme","Phone":"(212) 555-5555"}]ResponseNameresulterrorTypestringstringDescriptionReturns the result from executing the method from the specified Apex class.No specific format is returned. The format is determined by the value fromthe method that was executed.If the API call was successful, this variable is undefined. If the API call failed,this variable returns an error message.saveLog()UsageSaves or updates an object in <strong>Salesforce</strong>.Syntaxsforce.interaction.saveLog(object:string, saveParams:string, (optional)callback:function)ArgumentsNameobjectTypestringDescriptionThe name of the object to save or update.24