Skip to content

ScheduledJob__c

Sobject

apex
global class ScheduledJob__c extends SObject

Extends: SObject

Declarative scheduled job configuration. Each record defines a schedulable Apex class, cron expression, and activation status. The trigger framework automatically starts, stops, and monitors jobs based on record changes.


Fields

FieldDescription
global String ClassName__cThe fully qualified name of the Apex class to schedule.
global String CronExpression__cSalesforce-format cron expression that defines when this job runs.
global String Description__cFree-text description of the scheduled job purpose and execution frequency.
global Boolean IsActive__cActivates this scheduled job.
global String Parameters__cJSON-serialized DTO_NameValues containing name/value pairs passed to the scheduled class at runtime.
global String ScheduledJobId__cThe Salesforce CronTrigger Id for the scheduled job.
global String SchedulerName__cUser-friendly name for this scheduled job, used in the Job Name formula and displayed in Scheduled Jobs setup.
global String Timezone__cIANA TimeZoneSidKey (e.g., Africa/Johannesburg) of the user who authored the cron expression.

Field Details

ClassName__c

apex
global String ClassName__c

The fully qualified name of the Apex class to schedule. Supports outer and inner classes (e.g., Namespace.OuterClass.InnerClass).

Field Attributes:

AttributeValue
Data TypeText(100)
Requiredtrue
Uniquefalse
External IDfalse

CronExpression__c

apex
global String CronExpression__c

Salesforce-format cron expression that defines when this job runs. Uses the 7-field Salesforce cron syntax: Seconds Minutes Hours Day_of_month Month Day_of_week Optional_year.

Field Attributes:

AttributeValue
Data TypeText(255)
Requiredtrue
Uniquefalse
External IDfalse

Description__c

apex
global String Description__c

Free-text description of the scheduled job purpose and execution frequency. Helps administrators understand what the job does without reviewing the code.

Field Attributes:

AttributeValue
Data TypeText Area
Requiredfalse

IsActive__c

apex
global Boolean IsActive__c

Activates this scheduled job. The framework automatically schedules the job when checked. Automatically unchecked if the job fails or is terminated.

Field Attributes:

AttributeValue
Data TypeCheckbox
Default Valuetrue

Parameters__c

apex
global String Parameters__c

JSON-serialized DTO_NameValues containing name/value pairs passed to the scheduled class at runtime. The scheduled class must implement IF_Schedulable to receive these parameters.

Field Attributes:

AttributeValue
Data TypeLong Text Area(131072)

ScheduledJobId__c

apex
global String ScheduledJobId__c

The Salesforce CronTrigger Id for the scheduled job. System-populated when the job is scheduled.

Field Attributes:

AttributeValue
Data TypeText(18), case-insensitive
Requiredfalse
Uniquetrue
External IDfalse

SchedulerName__c

apex
global String SchedulerName__c

User-friendly name for this scheduled job, used in the Job Name formula and displayed in Scheduled Jobs setup.

Field Attributes:

AttributeValue
Data TypeText(40)
Requiredtrue
Uniquefalse
External IDfalse

Timezone__c

apex
global String Timezone__c

IANA TimeZoneSidKey (e.g., Africa/Johannesburg) of the user who authored the cron expression.

Field Attributes:

AttributeValue
Data TypeText(100)
Requiredfalse
Uniquefalse
External IDfalse