How to Schedule An Apex Job To Run Every 10 Minutes in Salesforce?

Sample code:

YourScheduledApexClass obj = new YourScheduledApexClass();

 

String sch1 = '0 0 * * * ?';

System.schedule('Schedule Job1', sch1, obj);

 

String sch2 = '0 10 * * * ?';

System.schedule('Schedule Job2', sch2, obj);

 

String sch3 = '0 20 * * * ?';

System.schedule('Schedule Job3', sch3, obj);

 

String sch4 = '0 30 * * * ?';

System.schedule('Schedule Job4', sch4, obj);

 

String sch5 = '0 40 * * * ?';

System.schedule('Schedule Job5', sch5, obj);

 

String sch6 = '0 50 * * * ?';

System.schedule('Schedule Job6', sch6, obj);


Follow Us

Posted By : Sudeer Kamat Date :

view_module Related

label Labels

Comments 0