+ Start a Discussion
karthik Jonnalagaddakarthik Jonnalagadda 

How to call a apex class on load standard sales force page.

Hi,

How to call a apex class on page  load standard sales force page.
KaranrajKaranraj
Karthik - You can't call apex class onload event of salesforce standard page. Apex class can be called in the following ways
  • A code snippet in an anonymous block.
  • A trigger invoked for specified events.
  • Asynchronous Apex by executing a future method, scheduling an Apex class to run at specified intervals, or running a batch job.
  • Apex Web Services, which allow exposing your methods via SOAP and REST Web services.
  • Apex Email Service to process inbound email.
  • Visualforce controllers, which contain logic in Apex for Visualforce pages.
  • The Ajax toolkit to invoke Web service methods implemented in Apex
Thanks,
Karanraj