Volunteers-for-Salesforce icon indicating copy to clipboard operation
Volunteers-for-Salesforce copied to clipboard

Filter on Volunteer Roster does not work due to custom report type

Open judisohn opened this issue 7 years ago • 5 comments

Thread 1 and 2 (same customer).

Replicated in test org. I believe the challenge is that we changed the custom report type to a WITH or WITHOUT join, and the filter is on the child object. See this Help & Training document, and related blog post. Need to rethink how this report is generated... perhaps with cross filter as recommended?

judisohn avatar Apr 03 '17 20:04 judisohn

**lurch: add

judisohn avatar Apr 03 '17 20:04 judisohn

Tracking W-018262

LurchTheButler avatar Apr 03 '17 20:04 LurchTheButler

am I correct that the report is not working just from the Campaign? when I test invoking the report from a specific Job or Shift, it does seem to provide the correct filtered results.

davidhabib avatar Apr 03 '17 21:04 davidhabib

Right, because you have a specified record filter on a parent record (Shift or Job). The filter on the child object is basically ignored. But if the only thing you're filtering on is the record that is WITH or WITHOUT, the filter will fail.

Try creating a Custom Report Type that's 3 levels and have the final join be 'with at least one record from (B) object' Create a report and filter on any value that's in C object. It will return just those results. Leave that tab open. Then go to the CRT and change the final join to 'with or without related records from (B) object.' Save and return to report you just ran, change nothing, and click Run. You'll get all (B) object records returned that are related to (A).

judisohn avatar Apr 03 '17 22:04 judisohn

This is working in Classic, not Lightning, and I believe is related to this similar issue for NPSP: https://github.com/SalesforceFoundation/Cumulus/issues/4018

Works in Classic: Screen Shot 2019-03-11 at 1 43 24 PM

But ignores all filters in Lightning: Screen Shot 2019-03-11 at 1 44 04 PM Screen Shot 2019-03-11 at 1 44 44 PM

coriobriensfdo avatar Mar 11 '19 20:03 coriobriensfdo