Packaging Manager should require Custom Field > Child Relationship Name - Ideas - Salesforce Trailblazer Community

All Ideas

Idea Details

Post an Idea
10  Points
Idea has been posted. Give it an upvote or downvote.

Packaging Manager should require Custom Field > Child Relationship Name

Developer Tools

I recentlly encountered the following problem with schema in a managed package (delivered by Zuora):
The field zqu__ProductRatePlanCharge__c.zqu__ProductRatePlan__c does not set the child relationship name. Thus, querying zqu__ProductRatePlanCharge__c and its child objects requires a very ugly query like: 
select id, name, 
(select id from zqu__product_rate_plan_options__r),
(select id from zqu__product_rate_plan_charge_options__r),
(select id from zqu__quotechargedetails__r),
(select id from zqu__R00N40000001mFVKEA2__r)
from zqu__productrateplan__c

Zuora's response was to point out that "Unfortunately , based on the following Article , Custom Field > Child Relationship Name cannot be changed once it's released in a managed package."

I suggest that forgetting to name a child relationship is a common developer oversight, and the packaging manager should really require that these names be set before permitting a managed package to be released.

Merge Idea · Flag

  • Upvotes
  • Downvotes



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.