An administrator at a global logistics organization is configuring a custom data model for tracking machinery assets and maintenance logs. The business requires that deleting an asset record automatically deletes all associated maintenance logs, that security access and record ownership of maintenance logs are derived strictly from the parent asset record, and that users can reassign a maintenance log record to a different asset record if it was originally linked incorrectly. Which two configuration steps must the administrator take to fulfill these business requirements? (Select 2)
- Create a Master-Detail relationship field on the child Maintenance Log object referencing the Asset object.Answer
- Check the 'Allow reparenting' option on the Master-Detail relationship field definition.Answer
- CCreate a Lookup relationship field on the Maintenance Log object and enable the 'Cascade Delete' setting in the relationship options.
- DSet the Organization-Wide Default (OWD) sharing setting for the Maintenance Log object to Controlled by Parent.
Answer
The administrator must create a Master-Detail relationship field on the Maintenance Log object pointing to the Asset object and check the 'Allow reparenting' checkbox on the field configuration.
Creating a Master-Detail relationship on the child object enforces automatic deletion of child logs when the parent asset is deleted and dictates that access to child logs is governed by access to the parent asset. Enabling the 'Allow reparenting' option on the field definition overrides the default restriction that prevents detail records from being reassigned to a different master record.
Step-by-Step Solution
Key Concept
Master-Detail Relationship Behaviors and Reparenting Configuration