All I see online is that each object can have 2 master-detail relationships, but on the Salesforce App Limits PDF : https://na5.salesforce.com/help/pdfs/en/salesforce_app_limits_cheatsheet.pdf

It says that custom objects can have 8, what release was this in? I am studying for DEV 401 and I wanted to make sure I knew the answer to this before I take it.


There is only 2 Master Detail Relationship allowed per object and it can have upto three custom detail levels.
You can read more about it here, Considerations for Relationships


Each object is allowed to have one or two masters, or up to 8 details.

  • 1
    Can you tell me where you read that you can have 8 details? Thanks – Brad Thomas Nov 5 '15 at 20:23
  • This is not limited to 8, there is no documentation --- can create 10+ without issue – Matt and Neil Feb 12 '19 at 18:05

You can have a Total of 40 Relationship fields with a Maximum of 2 Master Detail Relationships. So you can have all 40 as Lookup Relationship fields, 38 Lookup and 2 MD 39 Lookup and 1 MD relationship fields on an object.


Answer is 2 master-detail relationships on an object. The purpose of this note is the reminder that the limits are placed on the child object. Pretty obvious on an ER diagram; w/o ER in mind I for one will sometimes confuse where the limits are applied.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.