+ Start a Discussion
ANKITAANKITA 

Reg: Scheduling Apex

Hi,

 

Can you give a sample example to scheduling a class manually using system.schedule()?

 

Thanks,

ANKITA

Best Answer chosen by Admin (Salesforce Developers) 
Shashikant SharmaShashikant Sharma

Please see this

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm

 

http://developer.force.com/releases/release/Spring10/Apex+Scheduler

 

Please ask if any issue in writting a scheduler.

 

TO Schedule a Class Execution just click on Apex Class -> You will See a Button "Schedule Apex" ->Click on this Select your schedulable class -> Provide Schedule Apex Execution

 

Save it

All Answers

Chris JohnChris John

The 'Apex Scheduler' section of the apex developer guide should give some helpful info:

 

http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#StartTopic=Content/apex_scheduler.htm?SearchType=Stem



Shashikant SharmaShashikant Sharma

Please see this

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm

 

http://developer.force.com/releases/release/Spring10/Apex+Scheduler

 

Please ask if any issue in writting a scheduler.

 

TO Schedule a Class Execution just click on Apex Class -> You will See a Button "Schedule Apex" ->Click on this Select your schedulable class -> Provide Schedule Apex Execution

 

Save it

This was selected as the best answer
SFDC_LearnerSFDC_Learner

BatchapexTesting  obj=new BatchapexTesting ();
 String sch = '0 2 17 14 7 ? '; // Seconds  Minutes  Hours  Day_of_month  Month  Day_of_week  optional_year // time parameters
 system.schedule('Merge Job', sch, obj);