How to execute the batch apex class using developer console?
Batch Apex Class:

global class accountList implements Database.Batchable<Sobject> {
global Database.querylocator start(Database.BatchableContext BC) {
return Database.getQueryLocator([select Id, Name from Account]);
global void execute(Database.BatchableContext BC, list<Account> scope) {
return Database.getQueryLocator(query);
global void finish(Database.BatchableContext BC) {

Execute the Batch Apex Class using Developer Console using below,

accountList objTest = new accountList();

Written by 

3x Salesforce MVP | Platform Champion | 18x Salesforce Certified | MuleSoft Certified | 8x Trailhead Ranger | TechForce Services | Sydney | Australia

Leave a Reply

Your email address will not be published.