CronTrigger

Represents a scheduled job, similar to a cron job on UNIX systems. This object is available in API version 17.0 and later.

Supported Calls

describeSObjects(), query(), retrieve()

Fields

Field Details
CronExpression
Type
string
Properties
Filter, Group, Nillable, Sort,
Description
The cron expression used to initiate the schedule.
Syntax:
Minutes, Hours, Day of month, Month, Day of week, optional Year
See Using the System.Schedule Method in the Force.com Apex Code Developer's Guide.
CronJobDetailId
Type
reference
Properties
Filter, Group, Nillable, Sort,
Description
The ID of the CronJobDetail record containing more details about this scheduled job.
EndTime
Type
dateTime
Properties
Filter, Nillable, Sort,
Description
The date and time when the job either finished or will finish.
NextFireTime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The next date and time the job is scheduled to run. null if the job is not scheduled to run again.
OwnerId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Owner of the job.
PreviousFireTime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The most recent date and time the job ran. null if the job has not run before current local time.
StartTime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time when the most recent iteration of the scheduled job started.
State
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The current state of the job. Possible values are:
  • WAITING
  • ACQUIRED
  • EXECUTING
  • COMPLETE
  • BLOCKED
  • ERROR
  • PAUSED
  • PAUSED_BLOCKED
  • DELETED
TimesTriggered
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of times this job has been triggered.
TimeZoneSidKey
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Returns the timezone ID. For example, America/Los_Angeles.

Usage

Use this object to query scheduled jobs in your organization.

© Copyright 2000–2014 salesforce.com, inc. All rights reserved.
Various trademarks held by their respective owners.