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개
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