You need to sign in to do that
Don't have an account?
Prakhyat sapra
How to write schedulable Batch class to send email on week,1st month,3rd month,6thmonth,9thmonth,12thmonth from createdDate???
How to write schedulable Batch class to send email on week,1st month,3rd month,6thmonth,9thmonth,12thmonth from createdDate???
Please check below post for batch job and scheduler class.
1) http://amitsalesforce.blogspot.in/2016/02/batch-apex-in-salesforce-test-class-for.html
2) https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_scheduler.htm
Apex Scheduler Notes and Best Practices
We use Apex Scheduler to schedule a controller to execute it at a given time in future. For this make an Apex Scheduler Controller and to schedule this controller go to...
Administration Setup->Monitoring->Scheduled Jobs from there we select that Controller class and then provide some time and date to execute it in future.
Below is a sample code of the Apex Scheduler Controller to send an email :
Kindly mark it as the best answer if it works for you.
Thanks & Regards,
Priya Ranjan