Soru

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

An organization manages internal projects using a parent custom object, Internal_Project__c, and child records using Project_Milestone__c. The administrator needs to create a standard Roll-Up Summary field on Internal_Project__c to calculate the total count of related milestones. Which relationship configuration must exist between these two objects to allow the Roll-Up Summary field?

  1. A Master-Detail relationship created on the Project_Milestone__c object referencing Internal_Project__c as the masterCevap
  2. B
    A Lookup relationship created on the Project_Milestone__c object referencing Internal_Project__c as the parent
  3. C
    A Lookup relationship created on the Internal_Project__c object referencing Project_Milestone__c as the child
  4. D
    A Master-Detail relationship created on the Internal_Project__c object referencing Project_Milestone__c as the master

Cevap

A Master-Detail relationship created on the Project_Milestone__c object referencing Internal_Project__c as the master.
Standard Roll-Up Summary fields can only be created on the master object of a Master-Detail relationship. To establish this relationship, the Master-Detail relationship field must be created on the child object (Project_Milestone__c), referencing the parent object (Internal_Project__c) as the master.

Adım Adım Çözüm

1
Identify the field requirement on the parent object
The requirement calls for a standard Roll-Up Summary field on Internal_Project__c.
Standard Roll-Up Summary fields require a Master-Detail relationship to function.
2
Determine where the relationship custom field must be created
The relationship custom field must be defined on the detail (child) object, which is Project_Milestone__c.
In Salesforce data modeling, child objects store the custom relationship field that links back to the parent master object.

Anahtar Kavram

Roll-Up Summary Field Eligibility
Bu soruyu puanla