Job.apex

  • Docs
  • Tutorials
Docs Menu
  • Job
  • Job Methods
    • Constructors
    • Common Methods
    • Cron Expression Job Methods
    • Repeating Job Methods
  • Jobs Methods

Common Methods Guide

Common Methods

getName

Get the name of the Job

new Job('test', R.debug).getName();
// test

schedule

Schedule the job.

new Job('test', R.debug).everyDay().atHour(8).schedule();
// schedule the job that runs at 8:00 every day

getCronExpression

Get the generated cron expression.

Contribute on Github! Edit this section.