PDI · Question #28
Universal Containers has a support process that allows users to request support from its engineering team using a custom object, Engineering_Support__c. Users should be able to associate multiple…
The correct answer is A. Master-detail field from Engineering_Support__c to Opportunity. To associate multiple child records with a single parent and enable aggregate calculations on the parent, a master-detail relationship from the child object to the parent object is required.
Question
Universal Containers has a support process that allows users to request support from its engineering team using a custom object, Engineering_Support__c. Users should be able to associate multiple engineering_Support__c records to a single Opportunity record. Additionally, aggregate Information about the Engineering_support__c records should be shown on the Opportunity record. What should a developer Implement to support these requirements?
Options
- AMaster-detail field from Engineering_Support__c to Opportunity.
- BMaster-detail field from Opportunity to Engineering_Support__c
- CLookup field from Engineering_support__c to Opportunity
- DLookup field from Opportunity to Engineering_Support__c
How the community answered
(42 responses)- A81% (34)
- B7% (3)
- C2% (1)
- D10% (4)
Why each option
To associate multiple child records with a single parent and enable aggregate calculations on the parent, a master-detail relationship from the child object to the parent object is required.
A master-detail field from `Engineering_Support__c` (detail) to `Opportunity` (master) directly allows multiple support records to be linked to one opportunity and enables rollup summary fields on the Opportunity to aggregate data from these related support records.
A lookup field from `Opportunity` to `Engineering_Support__c` would establish a one-to-one or one-to-many relationship where `Opportunity` is the detail, contradicting the requirement to associate *multiple* support records to a single `Opportunity`.
Concept tested: Master-Detail Relationships and Rollup Summaries
Source: https://help.salesforce.com/s/articleView?id=sf.fields_about_master_detail_relationships.htm&type=5
Topics
Community Discussion
No community discussion yet for this question.