Soru

Zorluk: Çok zorStandard and Custom Object Management

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?

  1. The related Inspection__c records are automatically restored alongside the parent Account record, preserving their master-detail relationship.Cevap
  2. B
    The related Inspection__c records remain permanently deleted and cannot be recovered from the Recycle Bin once the parent Account is deleted.
  3. C
    The related Inspection__c records are restored, but their relationship field is automatically converted into a loose Lookup relationship.
  4. D
    The 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

1
Analyze Master-Detail relationship cascade deletion rules
When a master record (Account) is deleted, all detail records (Inspection__c) are automatically soft-deleted and moved to the Recycle Bin.
Detail record lifecycle is strictly tied to the parent master record in a Master-Detail relationship.
2
Evaluate Master-Detail restoration behavior
Restoring the master record automatically triggers the restoration of all related detail records that were cascaded to the Recycle Bin during the deletion.
Salesforce maintains relational integrity by automatically undeleting child records when the parent is restored.

Anahtar Kavram

Master-Detail Relationship Cascading Deletion and Restoration Behavior
Bu soruyu puanla