Friday, 12 June 2015

How to easily create CRON Expression for Scheduling a Apex Job in Salesforce


CRON Maker:

         While scheduling a apex job in Developer Console you need to create a CRON expression, then schedule a job with the created expression like below,
scheduledMerge m = new scheduledMerge();
String sch = '20 30 8 10 2 ?';
String jobID = system.schedule('Merge Job', sch, m);

There is a one website available to make your CRON expression easily,

URL: http://www.cronmaker.com/
     


No comments:

Post a Comment

Activities: Assign Tasks to a Queue Salesforce Lightning

Salesforce announced to assign Tasks to a Queue beginning from Spring'20 release. How does it work? In Setup, enter Queues in th...