ADM-201 · Question #330
Cloud Kicks has a custom object called Shipments. The company wants to see all the shipment items from an Account page. When an Account is deleted, the shipments should remain. What type of…
The correct answer is A. Shipments should have a lookup to Account. To link Shipments to Accounts while ensuring Shipments persist if the associated Account is deleted, a lookup relationship from Shipments to Account should be established.
Question
Cloud Kicks has a custom object called Shipments. The company wants to see all the shipment items from an Account page. When an Account is deleted, the shipments should remain. What type of relationship should the administrator make between Shipments and Accounts?
Options
- AShipments should have a lookup to Account.
- BShipments should have a master detail to Accounts.
- CAccounts should have a master detail to Shipments.
- DAccounts should have a lookup to Shipments.
How the community answered
(54 responses)- A91% (49)
- B2% (1)
- C6% (3)
- D2% (1)
Why each option
To link Shipments to Accounts while ensuring Shipments persist if the associated Account is deleted, a lookup relationship from Shipments to Account should be established.
A lookup relationship establishes a loosely coupled link between two objects, meaning the child record (Shipment) does not inherit the security or deletion behavior of the parent record (Account), allowing Shipments to remain if the Account is deleted.
A master-detail relationship from Shipments to Accounts would mean that if an Account (parent) is deleted, all related Shipments (children) would also be deleted, which contradicts the requirement.
A master-detail relationship from Accounts to Shipments would imply Shipments are the parent, which is incorrect based on the requirement that Shipments are 'items from an Account page'.
A lookup relationship from Accounts to Shipments is the reverse of what's needed; the Shipments object needs the field to link to an Account.
Concept tested: Lookup relationship deletion behavior
Source: https://help.salesforce.com/s/articleView?id=sf.relationships_considerations.htm&type=5
Topics
Community Discussion
No community discussion yet for this question.