function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
DateTime currentDateTime=System.now().addMinutes(1); String nextScheduleTime=String.valueof(currentDateTime.second()) +' '+String.valueof(currentDateTime.minute())+' ' +String.valueof(currentDateTime.hour())+' '+String.valueof(currentDateTime.day())+' ' +String.valueof(currentDateTime.month())+' ? '+String.valueof(currentDateTime.Year()); TestSchedulableClass testObj = new TestSchedulableClass(); system.schedule('Scheduled JOB', nextScheduleTime, testObj);
String chron1 = '0 1 * * * ? *'; System.schedule('Every 1 min', chron1, new JOBNAME());
Example 1:-
Example 2:-
Please let us know if this will help you.
Thanks,
Amit Chaudhary
Setup -> Develop -> Classes
You will see a "Schedule Apex" button. You can set up the timing from there.
http://salesforce.stackexchange.com/questions/3593/scheduling-an-apex-job-through-the-ui
Best Regards,
-Vivek