You need to sign in to do that
Don't have an account?
College Management
Send Email with Generated PDF as attachment using schedule class ?
Hi,
1. I've created an apex class and visualforce page to send given report to given email id as a pdf and xls attacments, working fine.
2. And i know " getContent() and getContentAsPdf() " is not supported for schedulable class. So to overcome it i created schedule class which will call the previously created apex class to send a report. I am getting 2 attachments but it does not contains any content in it.
Thanks !
1. I've created an apex class and visualforce page to send given report to given email id as a pdf and xls attacments, working fine.
2. And i know " getContent() and getContentAsPdf() " is not supported for schedulable class. So to overcome it i created schedule class which will call the previously created apex class to send a report. I am getting 2 attachments but it does not contains any content in it.
Thanks !
Gaurav Nirwal
This is complete process
College Management
Thanks Matthews ! I did it using trigger instead of batch class.