Salesforce Platform Developer I (legacy) — Question 265
AW Computing tracks order information in custom objects called Order__c and Order_Line__c. Currently, all shipping information is stored in the Order__c object.
The company wants to expand its order application to support split shipments so that any number of Order_Line__c records on a single Order__c can be shipped to different locations.
What should a developer add to fulfill this requirement?
Answer options
- A. Order_Shipment_Group__c object and master-detail field on Order__c
- B. Order_Shipment_Group__c object and master-detail fields to Order__c and Order_Line__c
- C. Order_Shipment_Group__c object and master-detail field on Order_Line__c
- D. Order_Shipment_Group__c object and master-detail field on Order_Shipment_Group__c
Correct answer: B
Explanation
The correct answer is B because adding master-detail fields to both Order__c and Order_Line__c allows for a proper relationship where each shipment group can be linked to both the order and its line items, enabling split shipments. Option A only connects to Order__c, which wouldn't support linking to multiple Order_Line__c records. Options C and D do not create the necessary relationships to both objects, limiting the ability to manage split shipments effectively.