• LeeSeifer
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies

Hi,

If you look at the CronTrigger object description there are fields called StartTime and EndTime:  http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_crontrigger.htm

 

It appears these fields are NOT writable.

 

 Using System.Schedule (http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm) method does not accept start time or end time for a cron job.  This means any job scheduled through System.Schedule has StartTime as the current date/time and EndTime is null.

 

How does one set CronTrigger StartTime and EndTime fields for jobs scheduled using System.Schedule?

 

 

Thanks!