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
Karthick
Bhushan.AdhikariBhushan.Adhikari
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 
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm
https://help.salesforce.com/HTViewHelpDoc?id=code_schedule_batch_apex.htm&language=en_US

Hope this helps.

Regards,
Bhushan


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


please help!