You need to sign in to do that
Don't have an account?
Error: Compile Error: Class DisasterRapMonitor must implement the method: void Database.Batchable<SObject>.execute(Database.BatchableContext, List<SObject>) at line 1 column 14
Hello Masters,
I am writing the following Batch but not able to save it. It only ends up with the afore-stated error even though I have included the execute method perfectly to my knowledge. I am mentioning my Class code below and would appreciate any help.
Class:
Global class DisasterRapMonitor implements Database.Batchable <sObject>
{
Global Database.QueryLocator start (Database.BatchableContext BC)
{
String DisasterWithoutRap = 'Select id,name from Disaster__c where id NOT in (select DisasterId from Response_Action_Plan__c)';
return Database.getQueryLocator(DisasterWithoutRap);
}
Global void execute ( Database.BatchableContext BC,List<Disaster__c> Dis)
{
for (Disaster__c di:Dis)
{
Task tk = new Task ();
tk.Subject = 'Need to be associated with a Response immediately. Please work it out.';
tk.WhoId = di.Id;
}
Update Dis;
}
Global void finish (Database.BatchableContext BC)
{}
}
Good Luck !
All Answers
Please let me know your requirement so that I can help you.
Hope this helps you!
If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others.
Thanks
Varaprasad
@For Support: varaprasad4sfdc@gmail.com
Good Luck !