I'm new to the development side with no real development background in any language. So I wrote this batch class, and I can't quite figure out how to implement the proper syntax for the constructor. This is what the constructor requires:
MD_PersonatorBatch(String q, Boolean updateContact, Boolean processAll)
This is what i've got so far:
global class listwareWeekly implements Database.Batchable<sObject>
{
global Database.QueryLocator start(Database.BatchableContext BC)
{
String query = ('SELECT Id, MailingCountry, Email, Melissa_Email_Result_Codes__c FROM Contact WHERE isDeleted = False LIMIT 100');
return Database.getQueryLocator((query)true, false); //I know this is wrong. I've tried a few different things, but this is where i'm at.
}
global void execute(Database.BatchableContext BC, List<Contact> scope)
{
MDPERSONATOR.MD_PersonatorBatch bb = new MDPERSONATOR.MD_PersonatorBatch();
Database.executeBatch(bb);
}
global void finish(Database.BatchableContext BC)
{
}
}
Any assistance would be greatly appreciated!
execute()
method doesn't do anything with itsscope
. Have you worked through the Batch Apex module on Trailhead?