You need to sign in to do that
Don't have an account?
Batching and Scheduling using Apex
global class SendReminderEmail implements Database.Batchable<sObject>{ global String query; global String subject; global String body; } global SendReminderEmail(String query, String subject, String body){ this.query = query; this.subject = subject; this.body = body; } global Database.QueryLocator start(Database.BatchableContext bc) { return Database.getQueryLocator(query); } global void execute(Database.BatchableContext bc, List<Speaker__c> scope) { for (Speaker__c speaker : scope) { EmailManager.sendMail(speaker.Email__c, this.subject, this.body); } } global void finish(Database.BatchableContext bc) { }In Step 4 of this project exercise, the constructor global SendReminderEmail(String query, String subject, String body) is throwing an error that 'global' is an unexpected token. My complete code is featured above.
Regards,
Mahesh