Populating filter criteria and custom filter logic on Reports through URL

I figured it out. The bool_filter parameter can only refer to criteria rows that are saved in the Report. My "template" report was saved with no criteria, so that I could add them one at a time. So when bool_filter refers to 1 AND (2 OR 3), those filter rows don't exist in the saved report, and it doesn't know what to do.

Solution for me: I saved the report with 10 filter rows, each of which is Created Date not equal ''. Then I change what fields and values those filter rows are pointing to, and make sure the bool_filter parameter includes all integers 1 through 10. The final URL looks like this: https://tapp0.salesforce.com/00OA0000004m4ZG?bool_filter=%28%281+AND+2%29+OR+%283+AND+4%29%29+AND+5+AND+6+AND+7+AND+8+AND+9+AND+10 &pc0=00NA0000009ku0A&pc1=00NA0000007jIed&pc2=00NA0000007jIed&pc3=00NA0000007jIed&pc4=00NA0000007jIed &pn0=eq&pn1=ge&pn2=le&pn3=ge&pn4=le &pv0=abc&pv1=8%2F21%2F2012&pv2=8%2F21%2F2012&pv3=8%2F21%2F2012&pv4=8%2F21%2F2012

Tags:

Reporting