function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Parteek Goyal 3Parteek Goyal 3 

how to call apex controller method using visualforce javascript in salesforce lightning

Hi All,

I want to know that how can we call apex controller method using visualforce javascript in lightning.
Is "sforce.apex.execute" method support in lightning, if not then what else we can do?

Thanks,
Parteek
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Prateek,

To call an Apex Controller from Lightning JavaScript.Please refer the below link. Hope it will be helpful.

Best Regards
Rahul Kumar