PLAT-ADMN-201 · Question #4
Universal Containers' Platform Administrator has been asked to create a many-to-many relationship between two existing custom objects. Which two steps should the administrator take when enabling the…
The correct answer is A. Create a junction with a custom object. B. Create two master-detail relationships on the new object. In Salesforce, a true many-to-many relationship between two objects requires a junction object - a third custom object that sits between the two. (A) The administrator must create this new custom object to serve as the junction. (B) On the junction object, two master-detail…
Question
Options
- ACreate a junction with a custom object.
- BCreate two master-detail relationships on the new object.
- CCreate URL fields on a custom object.
- DCreate two lookup relationships on the new object.
How the community answered
(52 responses)- A71% (37)
- C17% (9)
- D12% (6)
Explanation
In Salesforce, a true many-to-many relationship between two objects requires a junction object - a third custom object that sits between the two. (A) The administrator must create this new custom object to serve as the junction. (B) On the junction object, two master-detail relationship fields must be created - one pointing to each of the original objects. Master-detail (not lookup) relationships are required so the junction records are owned by their parent records and are deleted when a parent is deleted, which is the standard Salesforce pattern. URL fields (C) and lookup relationships (D) alone are not the correct mechanism for a standard many-to-many relationship.
Topics
Community Discussion
No community discussion yet for this question.