SalesforceTrailhead
  • Today
© 2026 Salesforce, Inc. All rights reserved. Privacy Terms of Use Trust Accessibility Cookie Preferences
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