Display Dynamic Lists
Last updated
Last updated
This guide provides instructions on how to use the Dynamic Related List feature in Salesforce to display records from different objects on a single page. This can be useful for creating custom views of data or for providing users with easy access to related information.
Access to a Salesforce org with the "Customize Application" permission
Knowledge of the Salesforce object model and field names
Navigate to the Setup menu and select Object Manager.
Select the object that you want to add the dynamic related list to.
Click on the Fields & Relationships tab.
Under the Related Lists section, click New.
In the Related List Type field, select Dynamic Related List.
In the Related List Name field, enter a name for the related list.
In the Parent Object field, select the object that is related to the object you are adding the related list to.
In the Related Object field, select the object that you want to display records from.
In the Related List Label field, enter a label for the related list.
In the Related List Type field, select either List or Tile.
In the Number of Records to Display field, enter the number of records that you want to display in the related list.
In the Related List Fields section, select the fields that you want to display in the related list.
In the Sort By field, select the field that you want to sort the records by.
In the Sort Order field, select either Ascending or Descending.
In the Filter Criteria section, enter any filter criteria that you want to apply to the related list.
In the Component Visibility section, select the users or groups that you want to be able to see the related list.
Click Save.
In this example, we will add a dynamic related list to the Opportunity object that displays the most recent 10 PCs for the Opportunity's account.
Navigate to the Setup menu and select Object Manager.
Select the Opportunity object.
Click on the Fields & Relationships tab.
Under the Related Lists section, click New.
In the Related List Type field, select Dynamic Related List.
In the Related List Name field, enter PCs.
In the Parent Object field, select Account.
In the Related Object field, select PC.
In the Related List Label field, enter PCs for Account.
In the Related List Type field, select List.
In the Number of Records to Display field, enter 10.
In the Related List Fields section, select the following fields:
PC Name
PC Stage
Start Date
End Date
In the Sort By field, select Start Date.
In the Sort Order field, select Descending.
Click Save.
After saving the dynamic related list, you will be able to see the most recent 10 PCs for the Opportunity's account on the Opportunity page.
Dynamic related lists are a powerful tool that can be used to create custom views of data and provide users with easy access to related information. By following the steps in this guide, you can add dynamic related lists to your Salesforce pages and improve the usability of your org.