I have an Account object, a related (master detail) contact object and a custom object Automobile__c that has a lookup to the contact. I would like to display the related Automobile__c records on the Account object as a related list where the Account is the parent of the contact record to which the Autombile__c record is related to.

Is this possible?

1 Answer 1


Salesforce doesnot allow indirect relationship objects to be displayed on Page layouts.

Workaround is, create a look relationship from Automobile__c to Account and Update this Account lookup field based on the AccountId of the Contact.


Contact con = [SELECT Id, AccountId FROM Contact LIMIT 1];

Automobile__c aut = new Automobile__c();
aut.contact__c = con.Id;
aut.Account__c = con.AccountId;
insert aut;

Or, through the process builder you can update account lookup.

Make sure Account Lookup field will not be displayed on the Automobile page layout.

  • yep, I was on that track, I'll do it through PB, thanks Santa!
    – Bartley
    Jun 7, 2017 at 21:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .