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
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