Activity Forums Salesforce® Discussions How can I schedule a job after every 15 minutes in Salesforce?

  • Somendra

    Member
    September 3, 2019 at 11:00 am

    Hi,

    Jobs cannot be scheduled in increments smaller than one hour.

    In Apex, you can schedule four jobs to every hour, staggered 15 minutes apart:

    System.schedule('Scheduled Job 1', '0 0 * * * ?', new ScheduledClass());
    System.schedule('Scheduled Job 2', '0 15 * * * ?', new ScheduledClass());
    System.schedule('Scheduled Job 3', '0 30 * * * ?', new ScheduledClass());
    System.schedule('Scheduled Job 4', '0 45 * * * ?', new ScheduledClass());

     

  • Saddam

    Member
    September 3, 2019 at 11:15 am

    Hi Laveena,

    You can use this corn expression

    System.schedule('Schedule job 00', '0 0 * ?', new NameOfScheduleClass());

    System.schedule('Schedule job 15', '0 15 * ?' , new NameOfScheduleClass());

    System.schedule('Schedule job 30', '0 30 * ?', new NameOfScheduleClass());

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos