• Nalini Kasturi
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 4
    Replies
Hi team,
 
sforce.apex.execute not working , i found no such property in object when i printed sforce and navigated into it. In lot of forms many people mentioned to use sforce.apex.execute to invoke apex class in visualforce page.

The following are the references i added . 

<apex:includeScript value="https://ap2.salesforce.com/soap/ajax/34.0/apex.js"/> <apex:includeScript value="https://ap2.salesforce.com/soap/ajax/34.0/connection.js"/>

and in the visualforce page i added below code  in the <script> tag


var retStr='';       
        console.log(sforce);
        retStr = sforce.apex.execute("RequestData", "getData",{}); 

I am using chrome to work.
Did this feature got discontinued.
My purpose is to invoke an apex code from the visualforce page.

 
Hi team,
 
sforce.apex.execute not working , i found no such property in object when i printed sforce and navigated into it. In lot of forms many people mentioned to use sforce.apex.execute to invoke apex class in visualforce page.

The following are the references i added . 

<apex:includeScript value="https://ap2.salesforce.com/soap/ajax/34.0/apex.js"/> <apex:includeScript value="https://ap2.salesforce.com/soap/ajax/34.0/connection.js"/>

and in the visualforce page i added below code  in the <script> tag


var retStr='';       
        console.log(sforce);
        retStr = sforce.apex.execute("RequestData", "getData",{}); 

I am using chrome to work.
Did this feature got discontinued.
My purpose is to invoke an apex code from the visualforce page.