Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Salesforce by (11.9k points)

I am trying to schedule a class to run every 15 minutes. I know we can set in salesforce for every hour, but is there a way to reduce the granularity to 10-15 minutes?

global class scheduledMerge implements Schedulable {

  global void execute(SchedulableContext SC) {

      ProcessTransactionLog p= new ProcessTransactionLog();

      p.ProcessTransaction();

   }

}

1 Answer

0 votes
by (32.1k points)
edited by

You can use the following apex code snippet in order to schedule your job to run every 15 minutes.

Want to learn Salesforce from the scratch? Here's is the right video for you on Salesforce provided by Intellipaat:

System.schedule('Job1', '0 0 * * * ?', new scheduledMerge());

System.schedule('Job2', '0 15 * * * ?', new scheduledMerge());

System.schedule('Job3', '0 30 * * * ?', new scheduledMerge());

System.schedule('Job4', '0 45 * * * ?', new scheduledMerge());

Browse Categories

...