A Salesforce Administrator at a media publishing company needs to calculate and display the total number of physical copies printed across all production batches on the parent custom object record, Book_Title__c. The production batches are stored in a child custom object named Print_Run__c, which currently links to Book_Title__c using a Lookup relationship. Which two configuration steps must the administrator perform to achieve this requirement declaratively using a Roll-Up Summary field?
- Convert the existing Lookup relationship field on Print_Run__c to a Master-Detail relationship.Answer
- Create a custom Roll-Up Summary field on Book_Title__c that uses the SUM aggregate function on the Quantity__c field of Print_Run__c.Answer
- CCreate a Roll-Up Summary field directly on Book_Title__c while retaining the existing Lookup relationship.
- DCreate a cross-object formula field on Book_Title__c using the SUM() formula function to calculate the total from child records.
Answer
The administrator must convert the existing Lookup relationship on Print_Run__c to a Master-Detail relationship and then create a Roll-Up Summary field on Book_Title__c using the SUM aggregate function on the child Quantity__c field.
Native Roll-Up Summary fields are only available on the parent (master) object in a Master-Detail relationship. Converting the existing Lookup relationship field on the child object (Print_Run__c) to a Master-Detail relationship enables the creation of a Roll-Up Summary field on the parent object (Book_Title__c). Once converted, creating a Roll-Up Summary field that uses the SUM aggregate function on the child object's Quantity__c field will automatically calculate the total.
Step-by-Step Solution
Key Concept
Roll-Up Summary Field Relationship Requirements and Operations