You need to sign in to do that
Don't have an account?
Yishay Haspel 10
Cannot schedule a Schedulable apex class
Hi,
We've got a class implementing Schedulable, Database.Batchable<sObject>, Database.stateful.
The class has the needed global void execute(SchedulableContext SC), but when trying to schedule it I get:
Error: You must select an Apex class that implements the Schedulable interface
What are we missing?
Many thanks,
Yishay
We've got a class implementing Schedulable, Database.Batchable<sObject>, Database.stateful.
The class has the needed global void execute(SchedulableContext SC), but when trying to schedule it I get:
Error: You must select an Apex class that implements the Schedulable interface
What are we missing?
Many thanks,
Yishay
Try something like this:
Hope it helps,
Sabina
If your schedule class is missing in UI it happend because of apex class version problem, you can schedule the class by using the developer console. Refer the below code.
Please let me know if you need any help regarding this.
Thanks,
Vijay
Thank you for the replay.
I used your ideas, and we will schedule it in the install script.
Have a nice day,
Yishay