Skip to main content
Sam Sallis 님이 #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개
  1. 2023년 6월 6일 오전 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