Ability to build custom related list in Visualforce - Ideas - Salesforce Trailblazer Community
Trailblazer Community

All Ideas

Idea Details

Post an Idea
3,900  Points
Idea has been posted. Give it an upvote or downvote.

Ability to build custom related list in Visualforce

Development (Apex / LWC / VF)

Currently if you want to have a related list on a page whose list data is a subset of that object's data (for example, you want a related list of only grants rather than all opportunities) you need to build the control from scratch yourself. While this is not too cumbersome at a basic level, re-writing pagination from scratch is quite complex - and frankly a bit of a waste of time. Additionally, your custom related list will never appear in the upper hover area. It would be great if the related list tag could take a custom SOQL query and only display those objects. Even if it's only possible to do a filter on recordtype, that would be extremely useful. Many of our clients are asking for this. Something like: lt relatedlist list="Opportunity" recordType="Grant, Donation" rendered="true" /gt or even better: lt relatedlist list=Opportunity" recordType="Application" whereClause="stageName='Rejected'" rendered="true" /gt (with proper character escaping) p.s. your editor just erased my sample tags the first time through! Hence the lt and gt instead of the actual characters. thanks! Sara

Merge Idea · Flag

  • Upvotes
  • Downvotes



from AppExchange


Help us to keep IdeaExchange clean by pointing out overlapping ideas. We'll investigate your suggestion and merge the ideas if it makes sense.



Thanks for your merge suggestion. We will review it shortly and merge the ideas if applicable.

Salesforce takes abuse situations very seriously. Examples of abuse include but are not limited to posting of offensive language or fraudulent statements. To help us process your request as quickly as possible, please fill out the form below describing the situation. For privacy and security reasons, the final outcome of an abuse case may not be revealed to the person who reported it.


Thank you for your feedback. We take abuse seriously and will investigate this issue and take appropriate action.