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
BeginsfdcBeginsfdc 

Reply ASAP : How to use related list

Reply ASAP


I want to know how to use related list and what is the syntax for

<apex:relatedList subject="/* here insert the code to get id used in the current page to allow get the id

from url " List="Contact"/>

  and this has to dispaly the related list of contact for that particular account whose id is used

Best Answer chosen by Admin (Salesforce Developers) 
RajiiiRajiii

 

Hi,

  If you are using visualforce page means the resulting URL should be given below format

     https:// Salesforce_instance/apex/your_page_Name?id="Account_id"

 for example

    https://Salesforce_instance/apex/your_page_Name?id=001D000000IRt53

 

  <apex:relatedlist list="Contact">