Guest User

Untitled

a guest
Jul 20th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. global class CaseBatchPendingSchedule implements Schedulable {
  2.  
  3. public static String sched = '0 0 01 1 * ?'; //Every 1st of the Month at 1am
  4.  
  5. global static String scheduleMe() {
  6. CaseBatchPendingSchedule SC = new CaseBatchPendingSchedule();
  7. return System.schedule('Case Batch Close Job', sched, SC);
  8. }
  9.  
  10. global void execute(SchedulableContext sc) {
  11. CaseBatchPending b1 = new CaseBatchPending();
  12. ID batchprocessid = Database.executeBatch(b1);
  13. }
  14. }
Add Comment
Please, Sign In to add comment