I have a requirement where I need to create a custom VF report which will be created automatically every month and will be sent to the respective client along with email template.
Though I have not started working on this but I am clear with how to create my report.
I have doubt regarding automatic report generation every month?
How can I automatically generate the reports every month?
How can I keep track of all the reports generated every month?
I do need to send those reports to the client along with email template.
Best Answer
you can use apex scheduler where you can specify date and time to execute code. Please follow below link. I used the same for sending reports via mail on dialy basis.
Apex Scheduler