Soru

Zorluk: KolayObject Relationships (Lookup, Master-Detail, Many-to-Many)

A Salesforce administrator needs to establish a relationship between a custom object named Equipment_Maintenance__c and the standard Asset object. The business requirement dictates that if an Asset record is deleted, all associated Equipment_Maintenance__c records must be automatically deleted as well. Which relationship type should the administrator create on the Equipment_Maintenance__c object?

  1. A Master-Detail relationship with Asset as the master objectCevap
  2. B
    A Lookup relationship with Asset as the lookup target
  3. C
    A Lookup relationship combined with a Roll-Up Summary field on Asset
  4. D
    A Hierarchical relationship referencing the Asset object

Cevap

A Master-Detail relationship with Asset as the master object
Creating a Master-Detail relationship on the custom child object with the parent object as the master enforces cascading deletion, ensuring that deleting the parent automatically removes all related child records.

Adım Adım Çözüm

1
Analyze the deletion requirement
Deleting a parent record must trigger an automatic cascade deletion of all child records.
Salesforce relationship types determine record lifecycle and cascading deletion behavior.
2
Select the appropriate object relationship type
Configure a Master-Detail relationship on the child object (Equipment_Maintenance__c) pointing to Asset.
Master-Detail relationships tie child record lifecycle directly to the master record.

Anahtar Kavram

Master-Detail Cascading Deletion
Bu soruyu puanla