Getting Started

  • What is Trailhead
  • myTrailhead
  • Trailblazer Community
  • Career Growth

Learn

  • Trails
  • Trailmixes
  • Modules
  • Projects

Credentials

  • Superbadges
  • Certifications
  • Maintain Certifications

Salesforce

  • Salesforce.com
  • AppExchange
  • Developers
  • Help Portal
© 2026 Salesforce, Inc. All rights reserved. Privacy Terms of Use Trust Accessibility Cookie Preferences
SalesforceTrailhead
  • Today
Asynchronous Apex

Schedule Jobs Using the Apex Scheduler

+500 Points~45 minsHands-On Challenge
Asynchronous ApexSchedule Jobs Using the Apex Scheduler

Org:Mindful Goat Playground

Topics

  • Concepts
  • Hands-On Challenge

Looking for help?

Explore Help ResourcesShare Your Feedback
Learning Objectives

After completing this unit, you'll be able to:

  • Schedule an Apex job.
  • Write a test for scheduled Apex.

Concepts

Scheduled Apex implements Schedulable and runs on a cron expression. Schedule it from Setup or with System.schedule.

Hands-On Challenge

  1. Create DailyLeadProcessor implementing Schedulable.
  2. Set LeadSource to Dreamforce for the first 200 leads with a blank lead source.
  3. Test it by scheduling the job in a test.
Check ChallengeDemo check
Previous unitControl Processes with Queueable ApexNext unit Monitor Asynchronous Apex