I have a VisualForce page, on it the user chooses when they want the report to run (Daily, Weekly, Monthly). Is there a way to schedule reports to run using Apex code?
I have a VisualForce page, on it the user chooses when they want the report to run (Daily, Weekly, Monthly). Is there a way to schedule reports to run using Apex code?
Best Answer
I'm with @AdrianLarson here - there's nothing in the metadata api nor analytics api to do this; a given report can only have one schedule, if any, and that is set by the point and click interface
For a user to specify their own unique report schedule, the solutions that come to mind get 'interesting'
Option 1
Option2
In either case, if you have sensitive information in a given report that some recipients can't see but others can, these solutions will be problematic.