+ Start a Discussion
John Neilan 2John Neilan 2 

Case Related Lists in Visualforce Page

Does anyone know how I can pull Case related lists into a custom Visualforce page? I know I can use the syntax:
<apex:relatedList list="NotesAndAttachments"/>
in other pages, however, I cannot get it to work on Cases. I am looking to add the related lists for:
Emails
Related Cases
Solutions
Case Comments
Open Activities
Case History
Attachments


Any ideas?  Thanks.
Naresh YadavNaresh Yadav
Hi John

You need to pass the id in the url. Then it will show the list of related records.

Like if your page name is showList then url will be

https://<base url>/apex/showList?id=<Case_Id>

Peace.