Experience Salesforce

Execute Batch Class in APEX

What You’ll Learn

  • How To Execute Batch Class In Apex?

How To Execute Batch Class In Apex?

Now, To execute the batch class, we need to use Database.executeBatch() method.

Below is the example code to execute the batch class in Apex.

// Create object of Batch Class
LeadUpdateBatch lUBatch = new LeadUpdateBatch();
// execute batch with chunk size 200
Database.executeBatch(lUBatch, 200);

Check out the video to understand and know how to write code in order to execute the batch class in Apex.

Salesforce certifications
Next Topic

Need Extra Support? Our FREE study materials have got you covered.

Our expert-prepared study materials provide the answers you need. Clear your doubts and improve your skills with detailed notes from industry professionals.

cts-img
Rakshabandhan Sale