A Salesforce Administrator at a non-profit organization is setting up custom objects to track funding grants using a parent object named Grant__c and a child object named Grant_Payment__c. The two objects are currently connected using a Lookup relationship. The administrator needs to calculate and display the total sum of all payment amounts directly on each Grant__c record, but finds that the Roll-Up Summary field type option is disabled when creating a new field on Grant__c. Which configuration change will allow the administrator to create the required summary field?
- Convert the Lookup relationship field on Grant_Payment__c to a Master-Detail relationship.Answer
- BCreate a cross-object formula field on Grant__c using the SUM() function to aggregate child payment amounts.
- CChange the Organization-Wide Default sharing setting of Grant_Payment__c to Controlled by Parent.
- DEnable the 'Allow Aggregate Calculations' setting on the existing Lookup relationship definition.
Answer
Convert the Lookup relationship field on Grant_Payment__c to a Master-Detail relationship.
In Salesforce, native Roll-Up Summary fields are exclusively supported on the master object of a Master-Detail relationship. Converting the existing Lookup relationship on the child object (Grant_Payment__c) to a Master-Detail relationship fulfills this requirement, allowing the administrator to create a Roll-Up Summary field using the SUM function on the parent object (Grant__c).
Step-by-Step Solution
Key Concept
Roll-Up Summary Field Relationship Requirements