function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ishan Singh 1Ishan Singh 1 

how to Implement the Scheduleable interface and schedule the batch

AbhishekAbhishek (Salesforce Developers) 
Hi Ishan,

The below article will guide how to Schedule an Apex class and it even has sample code snippet,

https://salesforce.stackexchange.com/questions/80277/sample-code-to-schedule-an-apex-class

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_scheduler.htm


This below article will guide you on how to schedule a batch apex class with code too.

https://developer.salesforce.com/forums/?id=906F00000008yKuIAI

https://salesforce.stackexchange.com/questions/24467/scheduling-batch-apex

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks.
 
sachinarorasfsachinarorasf
Hi Ishan,

Please go through the following links:

https://trailhead.salesforce.com/en/content/learn/modules/asynchronous_apex/async_apex_scheduled
https://www.appseconnect.com/apex-scheduler-in-salesforce/
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_scheduler.htm

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Sachin Arora