Skip to main content
Sam Sallis ha preguntado en #Sales Cloud

I have a custom object with a master detail relationship to the account object.

 

On the data table I am wanting to show the Account Name.. 

 

I have tried

CustomObject__c.ChildRelationshipName__r.Name 

 

But nothing appears..

 

If I use ChildRelationshipName__c the accountId appears

5 respuestas
  1. 6 jun 2023, 9:59

    HI @Sam Sallis, Child relationship name used to retrieve child record from a parent. If you want the child to parent just use the API name of the Master details field name like

    Master Details Field Name: Account__c

    then to get value, we use childObject.Account__r.Name

0/9000