Activity Forums Salesforce® Discussions How to execute Apex from Custom button or Javascript in salesforce ?

  • Piyush

    Member
    August 23, 2019 at 3:59 am

    HI Prachi,

    We can call any apex method through JavaScript by following function:
    sforce.apex.execute(“class_Name”,”Method_Name”,{Parameter_Name:Parameter_Value});

     

Log In to reply.

Popular Salesforce Blogs

Steps to Connect Pardot to Salesforce

Steps to Connect Pardot to Salesforce

Blog in

Steps to Integrate Salesforce and Pardot: There are some steps to install Pardot in salesforce 1- Click on this link https://login.salesforce.com/?ec=302&startURL=%2Fpackaging%2FinstallPackage.apexp%3Fp0%3D04t1W000000U7P8(production) https://test.salesforce.com/?ec=302&startURL=%2Fpackaging%2FinstallPackage.apexp%3Fp0%3D04t1W000000U7P8 (sandbox) 2- After…

Popular Salesforce Videos