+ Start a Discussion
viswsanathviswsanath 

The class is scheduled to run at 8 AM, on the 13th of February

Hi All,

Am new to schedule apex class . requirement is The class is scheduled to run at 8 AM, on the 13th of February. but i got below this error.
 Any body can help me. why did i came this error . can you please explain me .

Error :Compile Error: Invalid type: mergeNumbers at line 5 column 27

global class scheduledMerge implements Schedulable {
global void execute(SchedulableContext SC) {
 mergeNumbers M = new mergeNumbers();
  String sch = '0 0 8 13 2 ?';
  String jobID = system.schedule('Merge Job', sch, m);
 
   } 
}

Thanks,
Viswa.
Alexander TsitsuraAlexander Tsitsura
Hi, 

Maybe you need something like this
global class scheduledMerge implements Schedulable {
  global void execute(SchedulableContext SC) {
   mergeNumbers M = new mergeNumbers();
   M.call_Method();
  }
}
And run shedule job from developer console
scheduledMerge m = new scheduledMerge();
String sch = '0 0 8 13 2 ?';
String jobID = system.schedule('Merge Job', sch, m);

Thanks,
Alex