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
Karthick RajaKarthick Raja 

Purpose of Apex scheduler

Hi folks,
        Can anyone tell me the purpose of apex scheduler and how to use apex scheduler?
give me the simple example for that?

Thanks in advance
Hi Karthick,

Apex schedular is used to invoke apex class at a specific time. Suppose there is a apex class that needs to be invoked every 15 mins, you can write a schedular class that will invoke the deisred class every 15 mins. 

Salesforce has provided some example have a look at the following link

Hope this helps.


Karthick RajaKarthick Raja
Hy Bhushan.Adhikari,
         I wanna send a mail every 10 mins
for that How can I do?

please help!