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
shankswishankswi 

Scheduled Apex (CronTrigger) - End Date

I have a customer who needs to set the End Date on a Scheduled Apex job.  The Scheduled Apex is submitted by Apex, yet when we go through the UI, the End Date is blank and there appears to be no way to set it. 

 

So, does anyone know how you can set the the EndDate, via Apex, when submitting a new Scheduled Job?  I am using the System.ScheduleJob method and am NOT trying to use an Insert DML on CronTrigger

 

Thanks in advance...

 

Steve

kevincckevincc

Any solution to this?

ShanksShanks

Unfortunately, no.  Not that I'm aware.