Allow adding new master-detail relationships to existing managed objects. - Ideas - Salesforce Trailblazer Community
Trailblazer Community

All Ideas

Idea Details

Post an Idea
1,290  Points
Open
Idea has been posted. Give it an upvote or downvote.

Allow adding new master-detail relationships to existing managed objects.

Not Categorized

Currently you cannot add a new master-detail relationship to an object that has already been released as part of a managed package.   This prevents developers from expanding on current functionality, requiring them to abandon the old object and create a new object if the master-detail relationship is needed.

In our case, we wanted to take advantage of the multiple master-detail relationship functionality that was added in a previous release to replace our trigger code that emulated multiple masters on a custom object, but cannot due to this limitation.

Merge Idea · Flag

Latest Comment from Salesforce

  • Andrew Smith - 6 years ago

    We currently don't have any plans to offer this feature.  As a work around, you can create a new object for the detail and migrate the data either as part of an install script or through a post install operation in your app.

    The problem with allowing this is that existing objects lose their OwnerId field and also their [ObjectName]Share table in the API.  If a customer has built integrations or customized the app to use these fields/objects then the package upgrade will fail.  In addition, certain customizations are not possible on detail objects that are allowed on standalone (lookup) objects.  This again complicates the upgrade.  

    We'll continue to re-evaluate this feature as new capabilities are added to the platform that might permit us to allow this.   
  • Upvotes
  • Downvotes

Ideas

Apps

from AppExchange

Help us to keep IdeaExchange clean by pointing out overlapping ideas. We'll investigate your suggestion and merge the ideas if it makes sense.



 

 

Thanks for your merge suggestion. We will review it shortly and merge the ideas if applicable.

Salesforce takes abuse situations very seriously. Examples of abuse include but are not limited to posting of offensive language or fraudulent statements. To help us process your request as quickly as possible, please fill out the form below describing the situation. For privacy and security reasons, the final outcome of an abuse case may not be revealed to the person who reported it.


 

Thank you for your feedback. We take abuse seriously and will investigate this issue and take appropriate action.