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
Jonathan SpinkJonathan Spink 

How do you create a custom related list?

I want to create a custom related list to show a filtered set of records for campaign history on Contact. Is this easier done with Visualforce or a Lightning Component?
Best Answer chosen by Jonathan Spink
VinayVinay (Salesforce Developers) 
Hi Jonathan,

It depends on your requirement on how you want to develop using VF or lightning components.

Refer below examples for the same.

https://www.mstsolutions.com/technical/custom-related-list-using-visualforce-and-apex/
https://www.sfdc-lightning.com/2019/08/custom-related-list-lightning.html

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,

All Answers

VinayVinay (Salesforce Developers) 
Hi Jonathan,

It depends on your requirement on how you want to develop using VF or lightning components.

Refer below examples for the same.

https://www.mstsolutions.com/technical/custom-related-list-using-visualforce-and-apex/
https://www.sfdc-lightning.com/2019/08/custom-related-list-lightning.html

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
This was selected as the best answer
Jonathan SpinkJonathan Spink
Thanks Vinay, that's very helpful.
VinayVinay (Salesforce Developers) 
Glad it helped you. 

Please mark as Best Answer so that it can help others in the future.