Attachment related list from Accounts, Contacts, and Opportunities

  • 1
  • Question
  • Updated 1 year ago
  • Answered
I have an Account Detail page with related lists for Opportunities, Contacts, Tasks and Attachments.

I am trying to show the Attachments for the Account as well as its related Opportunties and Contacts.   I have tried creating 3 seperate conditions on the Attachment model where ParentId = the Id of each model, and using 1 OR 2 OR 3 in the Condition Logic.   

The Opportunites and Contacts related lists work fine, they both have conditions to link to the Account (Id) and always on.

Using Salesforce Classic.   Any suggestions or directions are greatly appreciated

Thanks!
Photo of Ann Kukich

Ann Kukich

  • 1,316 Points 1k badge 2x thumb

Posted 1 year ago

  • 1
Photo of Royston Goveia

Royston Goveia

  • 424 Points 250 badge 2x thumb
Hi Ann, if youre looking to use classic, you should be able to create an inline VF page for this and a standard controller. The controller will query the related objects and fetch their attachments, which you would then pass back to the VF. I had something similar, where I displayed parent and child case attachments on the parent and child records.

heres a screenshot, see inline section : Parent/Subcase Attachments

(Edited)
Photo of Ann Kukich

Ann Kukich

  • 1,316 Points 1k badge 2x thumb
Wow, nice solution. Thanks for sharing this Royston. I got it going and works awesome!