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

Use Batch Apex

+500 Points~45 minsHands-On Challenge
Asynchronous ApexUse Batch Apex

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:

  • Write a Batch Apex class.
  • Invoke and monitor a batch job.

Concepts

Batch Apex implements Database.Batchable with start, execute, and finish methods. Each execute call gets a fresh set of governor limits for up to 200 records.

Hands-On Challenge

  1. Create LeadProcessor implementing Database.Batchable<sObject>.
  2. Update the LeadSource of every lead to Dreamforce.
  3. Test it with 200 leads.
Check ChallengeDemo check
Previous unitUse Future MethodsNext unit Control Processes with Queueable Apex