function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Eledra NguyenEledra Nguyen 

Need help with multi level Master Detail relationship

Hi all,

 

I'm trying to develop these objects in the Force.com database:

 

Entitlement object which can have 1 or more Products.

Product can have 1 or more features.

Each feature can map with 1 or more License Model.

 

So my first solution is creating a reference object link to Entitlement and Product by using Master-Detail relationships

 

Entitlement --> Ref_Entitlement_Product <--- Product.

 

But after this, i got stuck with feature and license model. Salesforce does not allow me to create other Master-Detail relationship linking directly to the Ref_Entitlement_Product.

 

I think there should be some way to create Master-Detail-Subdetail1-subdetail2 relationship. This is truly essential.

 

Regards,

Best Answer chosen by Admin (Salesforce Developers) 
sfdcfoxsfdcfox

You also can't have "grand-parent" master-detail relationships, either, such as Account <-- CO1 <-- CO2. Instead, consider using triggers to force deletions properly.

All Answers

Shukla_AnkitShukla_Ankit

Hi,

 

For your issue I want to know one thing that is 'product object which you use is statndard object?'

If yes then in salesforce we can not define custom object (Entitlement ) as master of any standard object(as product).

You can only define Lookup Relationship.

 

Thanks

 

sfdcfoxsfdcfox

You also can't have "grand-parent" master-detail relationships, either, such as Account <-- CO1 <-- CO2. Instead, consider using triggers to force deletions properly.

This was selected as the best answer