A Salesforce Administrator at a commercial real estate franchise company needs to display the sum of annual revenue from all active branch offices on the parent Franchise Account record. Currently, the custom object Branch Office is connected to the standard Account object via a Lookup relationship. When attempting to create a new field on the Account object to aggregate this revenue, the administrator notices that the Roll-Up Summary field type is disabled. Which configuration change must the administrator make to satisfy this requirement?
- Convert the existing Lookup relationship field on Branch Office to a Master-Detail relationship, then create a Roll-Up Summary field using the SUM function on the Account object.Answer
- BCreate a Roll-Up Summary field directly on the Account object by selecting the existing Lookup relationship from the field definition menu.
- CCreate a cross-object formula field on the Branch Office object that calculates total revenue and projects the result upward onto the Account page layout.
- DDelete all existing Branch Office records so that the system automatically converts the Lookup relationship to a Master-Detail relationship without manual field editing.
Answer
Convert the existing Lookup relationship field on Branch Office to a Master-Detail relationship, then create a Roll-Up Summary field using the SUM function on the Account object.
In Salesforce, Roll-Up Summary fields calculate values from related child records, but they can only be created on the master object in a Master-Detail relationship. Converting the Lookup relationship on the custom child object to a Master-Detail relationship allows the administrator to create a declarative Roll-Up Summary field using the SUM aggregate operation.
Step-by-Step Solution
Key Concept
Roll-Up Summary Field Relationship Requirements