Salesforce
CRT-450 · Question #27
A developer created a custom order management app that uses an Apex class. The order is represented by an Order object and an Orderltem object that has a master-detail relationship to Order. During…
The correct answer is C. Create a junction object between Orderltem and Order. See the full explanation below for the reasoning.
Question
A developer created a custom order management app that uses an Apex class. The order is represented by an Order object and an Orderltem object that has a master-detail relationship to Order. During order processing, an order may be split into multiple orders. What should a developer do to allow their code to move some existing Orderltem records to a new Order record?
Options
- AChange the master-detail relationship to an external lookup relationship.
- BAdd without sharing to the Apex class declaration.
- CCreate a junction object between Orderltem and Order.
- DSelect the Allow reparenting option on the master-detail relationship.
How the community answered
(24 responses)- A4% (1)
- B17% (4)
- C71% (17)
- D8% (2)
Community Discussion
No community discussion yet for this question.