Skip to main content
Hi there,

I am trying to add a "Related Record List" Component in my Community on my custom object (called Payment Profiles) details page. I want to display a related list from the related look-up field. In this case, the related field is "Counterpart__c" The component requires "Parent Record ID" and the Related List Name.

Related Record List Component on Community - What is Parent Record ID

I've tried:

{!Counterpart__c}

{!Counterpart__c.Id}

{!Counterpart__r}

{!Counterpart__r.Id}

{!recordId.Counterpart__c}

{!recordId.Counterpart__c.Id}

{!recordId.Counterpart__r}

{!recordId.Counterpart__r.Id}

Granted I haven't published and tested each of these options, I am just relying on the preview in the community builder which says "This component has no data". Can you let me know what the syntax was for determining the ID of a parent record?

Thanks,

Zoe
15 respuestas
  1. 13 feb 2025, 12:23

    There are two issues being discussed here, one is parent record Id and second is related list name. 

    Related list name issue can be resolved by giving the correct name which can be found on the lookup field created on the child object. 

    Second issue is parent record id. I have tried using {!recordId} and it doesn't load the component and displays an error this component has no data.  

    My question is where should this recordId variable gets the Id? Do i have to place a record detail on the site? Really confusing, Can anyone please help if you figured this out.  

    Thank you!

0/9000