A Salesforce administrator needs to create a Roll-Up Summary field on the Account object to calculate the sum of related custom record amounts. When attempting to create the field, the administrator notices that the Roll-Up Summary field type option is greyed out and unavailable. Upon reviewing the custom object schema, the administrator sees that the custom object is linked to Account using a Lookup relationship. Which action must the administrator take to enable the creation of a Roll-Up Summary field on the Account object?
- Convert the Lookup relationship field on the custom object to a Master-Detail relationship.Answer
- BEnable the cascading delete option on the existing Lookup relationship field properties.
- CChange the Organization-Wide Default (OWD) sharing setting of the custom object to Controlled by Parent.
- DCreate a secondary self-referential Lookup field on the Account object to establish parent-child aggregation.
Answer
Convert the Lookup relationship field on the custom object to a Master-Detail relationship.
In Salesforce, standard Roll-Up Summary fields can only be created on the master object in a Master-Detail relationship. Converting an existing Lookup field to a Master-Detail relationship (ensuring all child records have a parent assigned first) makes the Roll-Up Summary field type available on the parent object.
Step-by-Step Solution
Key Concept
Roll-Up Summary Prerequisite & Relationship Conversion