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
Alex MoralesAlex Morales 

Create Related List to show all activity from sub accounts

How do you create custom related lists to show all the activities from it's sub accounts?  I'd also want to have that to show all the sub account contacts on the contact view as a related list. 

Paul.FoxPaul.Fox

The easiest way to get this information is to create a link on the Account that goes to a report that is for Accounts with SubAccounts with Activities. Set the first filter as AccountId = blank, and then copy the url. To the end of the URL, add ?pv0={!AccountId} and then that will fill in with the Account that the user is looking at when they click on the link.

 

If you actually want to have it as a list, you will need to create a visualforce page that will replace the standard Account page, and a controller that will query those records and build the additional related lists.