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
Ad.baylesAd.bayles 

How can I filter an embedded report by a parent's record to show related records ?

Hello guys,
Considering this use case :

I have a custom object linked to the Opportunity object via a lookup.

I want to embed a report on the custom object's page layout, in order for the report to show only records related to the same parent opportunity as the current record.

The "filtered by"  option makes me think it is possible, but it just does allow me to filter by the parent object.
User-added image

I have tested with various report types (with Opportunity as the master object of the report, my custom object,etc). And of course, I have included ID fields in my reports :-).

Does anyone have an idea on how to make it work ? Or is the only solution still to create a visualforce page ?
Best Answer chosen by Ad.bayles
Ad.baylesAd.bayles
Yes Indeed, you pointed me to my original post.. :-)
Thanks anyway

All Answers

Ashish_SFDCAshish_SFDC
Hi Adrien, 


This issue has been addressed in the other community: https://success.salesforce.com/answers?id=90630000000hhJMAAY&feedtype=SINGLE_QUESTION_DETAIL&dc=All&criteria=OPENQUESTIONS&


Regards,
Ashish
Ad.baylesAd.bayles
Yes Indeed, you pointed me to my original post.. :-)
Thanks anyway
This was selected as the best answer