You need to sign in to do that
Don't have an account?
Ravindra Kashyap 2
Where I'll call system.schedule method??
Hello Experts,
I want to run my apex code everyday on 1 PM, my question is where i should write below code for that??
Do I need to run in anonymous window??
proschedule p = new proschedule();
String sch = '0 0 13 * * *';
system.schedule('One Time Pro', sch, p);
I want to run my apex code everyday on 1 PM, my question is where i should write below code for that??
Do I need to run in anonymous window??
proschedule p = new proschedule();
String sch = '0 0 13 * * *';
system.schedule('One Time Pro', sch, p);
All Answers
Run it using developer console:
- Open developer console
- Click on Debug --> anonymous window
- write above code and run.
Thanks,Gaurav