function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mdelgadomdelgado 

Creating a system.schedule

Hello,

 

I'm trying to create a scheduled job.  I have been able to create the job, but I cannot figure out how to configure and end date.

 

Here is what I have

 

Import_Schedule imp_sch = new Import_Schedule();
String s = '0 0 0 ? * SUN-SAT';  
system.schedule('Job Name1', s, imp_sch); 

 

If anyone can tell me how to specify parameters to populate the required end date field it will be greatly appreciated.

 

regards,

 

Mirko

Andy BoettcherAndy Boettcher
You pretty much get the options to schedule indefinitely, or schedule one-time as far as I've been able to see. -Andy