An administrator at Universal Containers has configured a Master-Detail relationship between the standard Account object (Master) and a custom object named Inspection__c (Detail). The administrator deletes an Account record that has several associated Inspection__c records. Later, the administrator restores the deleted Account record from the Recycle Bin. What happens to the related Inspection__c records after the parent Account record is restored?
- The related Inspection__c records are automatically restored alongside the parent Account record, preserving their master-detail relationship.Cevap
- BThe related Inspection__c records remain permanently deleted and cannot be recovered from the Recycle Bin once the parent Account is deleted.
- CThe related Inspection__c records are restored, but their relationship field is automatically converted into a loose Lookup relationship.
- DThe related Inspection__c records are restored, but all custom picklist fields on those records revert to their default record type assignments.
Cevap
The related Inspection__c records are automatically restored alongside the parent Account record, preserving their master-detail relationship.
In a Master-Detail relationship, deleting the master record causes a cascade delete of all associated detail records into the Recycle Bin. When the master record is restored from the Recycle Bin, Salesforce automatically restores all detail records that were deleted as part of the cascade operation, fully retaining their relationship definition and data state.
Adım Adım Çözüm
Anahtar Kavram
Master-Detail Relationship Cascading Deletion and Restoration Behavior