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
ahonahon 

related record tab

If Account has several related Cases, how do I add a related record tab / component to automatically display only the most recent Case?

(this is an example, I am using custom objects)
HarshHarsh (Salesforce Developers) 
Hi Ahon,

Please follow the below steps to create a related record tab.
  1.  Goto Edit page and Click on Related.
  2. On the Left Side, you will see the "Add Tab" button.
  3. Select the Tab label (here It will be cases).
  4. Then drag the "Related List- single" from the Components section 
  5. Then you will see three fields on the Left side
  6. Parent Record, Related List, Related List Type.
  7. In Related List select the object name (in our scenario it is Case)
  8. Related List Type -> Select the view type that you want.
  9. Save it 
Hope your query is answered above.

Please mark it as Best Answer if the above information was helpful.

Thanks.