Soru

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

A Salesforce Administrator is designing a custom data model to manage resource allocations. A custom object named Resource_Assignment__c serves as a junction object connecting the Project__c object and the Consultant__c object. The business requirement dictates that summary reporting of total allocated hours must be displayed directly on the Project__c record, and managers must be able to move an existing assignment record from one project to another when staffing shifts occur. Which two configuration choices or system behaviors must the administrator take into account for this data model? (Select 2 answers)

  1. The relationship between Resource_Assignment__c and Project__c must be a Master-Detail relationship to support Roll-Up Summary fields on Project__c.Cevap
  2. The Master-Detail relationship field referencing Project__c must have the 'Allow reparenting' setting enabled to permit reassigning records to a different project.Cevap
  3. C
    A Roll-Up Summary field can be configured on Project__c using a standard Lookup relationship field on Resource_Assignment__c.
  4. D
    Deleting a Project__c record will leave associated Resource_Assignment__c records intact, automatically converting their parent relationship into a blank value.

Cevap

The data model requires establishing a Master-Detail relationship to support Roll-Up Summary fields on the parent object, and the 'Allow reparenting' checkbox must be explicitly selected on the relationship field definition to allow shifting assignments between parent records.
Native Roll-Up Summary fields on custom parent objects require a Master-Detail relationship with the child object. Furthermore, because Master-Detail child records cannot be reparented by default, enabling the 'Allow reparenting' setting on the custom field definition is necessary to fulfill the requirement of moving assignment records between projects.

Adım Adım Çözüm

1
Evaluate field type requirements for summary calculations.
Determined that native Roll-Up Summary fields on parent custom objects (Project__c) are strictly limited to Master-Detail relationships.
Lookup relationships do not support native Roll-Up Summary fields on custom objects.
2
Evaluate record re-assignment requirements.
Identified that child records in a Master-Detail relationship are locked to their master record upon creation by default.
To allow moving a child assignment record to another parent project, the 'Allow reparenting' setting on the Master-Detail field must be enabled.
3
Analyze deletion and structural implications.
Confirmed that deleting a parent master record cascades deletion to all child detail records, contradicting the misconception that child records persist unlinked.
Cascading deletion is inherent to Master-Detail relationships in Salesforce.

Anahtar Kavram

Master-Detail Relationship Capabilities and Reparenting Rules
Bu soruyu puanla