This is a use case that we all come across very often, Schedule a batch class every hour to clean up data or to send out batch emails to case team members (Which I’ll blog about later).
There are three main steps involved in this
There are three main steps involved in this
- Write a Batch class with the required logic
- Write a Scheduled Apex which calls the above Batch Class
- Schedule the class from the developer console by executing anonymous apex