I need to pass report parameters from VF page.?

I want to run a report from Thursday to Friday dynamically... I have the dates on Vf page...

But how to pass in the report URL.


1 Answer 1


One option I can think of is sending parameter vis URL to the filter criteria-

Note that pv0, pv1, pv2 are the individual filter criteria items for you report. So effectively kindly edit the report and for the first criteria line put in

"Created Date" greater than or equal to --- and then leave the third column blank

For the second put in "Created Date" Less then or equal to -- and then leave the column blank

and so on.....

so your URL should be like https://na5.salesforce.com/00O70000004aO3f&pv0={Start_date}&pv1={end_date}

  • Its still not working na5.salesforce.com/00O70000004aO3f?pv0=09/29/2008&pv1=09/30/… it is assigning to 1. Assigned contains 09/29/2008 2. Subject contains 09/30/2015 ..I want Time Frame
    – miku
    Aug 18, 2015 at 7:38
  • Did you maintain proper sequence... It assigns sequentially Aug 18, 2015 at 9:47
  • I used pv0 and pv1..is that not right.?
    – miku
    Aug 18, 2015 at 11:15
  • What are the criterias in your report... Aug 18, 2015 at 11:17
  • I have 2 dates in apex class...One is start date and one is end date..I want to use these 2 dates to set the time frame start and end date in the report.
    – miku
    Aug 18, 2015 at 11:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .