+ Start a Discussion
VidhiVidhi 

Scheduler Class

Can we schedule a normal class which not batchable in apex.I  have a class in apex salesforce  to which i want to scheule but it is not batchable .Is there is any way to schedule the same ???
Vinit_KumarVinit_Kumar
As long as ,the apex class is using Schedulable interface,you can schedule it.It doesn't matter whether that class thats batchable or not.What I mean by that is your Apex clsss whould be something like below :-
//Below class implements schedulable interface
global class <Classname> implements Schedulable {
   global void execute(SchedulableContext SC) {
//your logic here
    }
}

If this helps,please mark it as best answer to help others :)