Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global class CaseBatchPendingSchedule implements Schedulable {
- public static String sched = '0 0 01 1 * ?'; //Every 1st of the Month at 1am
- global static String scheduleMe() {
- CaseBatchPendingSchedule SC = new CaseBatchPendingSchedule();
- return System.schedule('Case Batch Close Job', sched, SC);
- }
- global void execute(SchedulableContext sc) {
- CaseBatchPending b1 = new CaseBatchPending();
- ID batchprocessid = Database.executeBatch(b1);
- }
- }
Add Comment
Please, Sign In to add comment