Soru

Zorluk: OrtaStandard and Custom Object Management

An administrator at a healthcare non-profit needs to track patient satisfaction surveys using a new custom object named Patient_Feedback__c. The business team requires that aggregate score totals from all feedback records display directly on the parent Account record using a declarative roll-up summary field. Additionally, if an Account is deleted, all associated Patient_Feedback__c records must automatically be removed. Which relationship configuration on the custom object satisfies these requirements?

  1. Create a Master-Detail relationship field on the Patient_Feedback__c custom object referencing the Account standard object.Cevap
  2. B
    Create a Lookup relationship field on the Patient_Feedback__c custom object referencing Account, and configure a roll-up summary field on Account.
  3. C
    Create a Lookup relationship field on the Account standard object referencing Patient_Feedback__c and select the cascade delete option.
  4. D
    Create a Master-Detail relationship field on the Account standard object referencing the Patient_Feedback__c custom object.

Cevap

Create a Master-Detail relationship field on the Patient_Feedback__c custom object referencing the Account standard object.
Creating a Master-Detail relationship field on Patient_Feedback__c referencing Account satisfies both business requirements. In a Master-Detail relationship, the master record (Account) controls detail record behavior, enabling automatic cascade deletion of child records when the master is deleted, and allowing standard Roll-Up Summary fields to be created on Account.

Adım Adım Çözüm

1
Identify the relationship requirements between Account and Patient_Feedback__c.
The requirements demand declarative roll-up summary fields on the parent and automatic cascade deletion when a parent record is deleted.
Master-Detail relationships natively support cascade deletion and permit roll-up summary fields on the master object.
2
Determine the child object and relationship placement.
Patient_Feedback__c must be the child/detail object containing the Master-Detail field pointing to the parent Account object.
Relationship custom fields are always created on the child object pointing toward the parent.

Anahtar Kavram

Master-Detail Relationship Capabilities and Setup
Bu soruyu puanla