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
mxravimxravi 

How to schedule a report using Apex Code?

I am trying to schedule a report using Apex Code. How to schedule a report using apex code? Please help. 

 

 

Thank You

 

Mrudula Ravindran

sanjdevsanjdev

Hi,

 

I think this is not possible through Apex. You can schedule the same by Report schedule functionality.

 

For more details  visit "http://stackoverflow.com/questions/4277332/how-to-i-access-reports-programmatically-in-salesforce-using-apex"

 

If this answer your question, Mark it as resolved.

 

Cheers

Sanj

Anup JadhavAnup Jadhav

You cannot directly schedule a report in Apex. You can, however, using Batch apex create csv files and email them to people who need these reports.

 

Thanks,

Anup

abidpathan1.3963633157833113E12abidpathan1.3963633157833113E12
Hi Anup,

Can you please let me know
How we can schedule the report using the batch apex and email to the people