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
Srinu@dreamsSrinu@dreams 

How many ways we can call Apex Classes?

Best Answer chosen by Admin (Salesforce Developers) 
HariDineshHariDinesh

Hi,

 

We can call apex class in below mentioned ways

 

  • From another class
  • From Trigger
  • From Visualforce page
  • From Developer console
  • Form JavaScript button, Links
  • From Home page components

 

 

All Answers

HariDineshHariDinesh

Hi,

 

We can call apex class in below mentioned ways

 

  • From another class
  • From Trigger
  • From Visualforce page
  • From Developer console
  • Form JavaScript button, Links
  • From Home page components

 

 

This was selected as the best answer
Teach_me_howTeach_me_how

From Scheduler

nagamalli tadikondanagamalli tadikonda
cloud you please explain with one example ?(How many ways we can call Apex Classes?)
md saif ansarimd saif ansari
Four ways to call the Apex class.
Visual page.
Web service.
Triggers.
Email services