Question

Difficulty: MediumFormula Fields and Roll-Up Summary Fields

A Salesforce Administrator at an event management platform needs to display the total revenue of all confirmed reservations directly on the parent custom object, Venue__c. Reservations are stored in a custom child object, Reservation__c, which is connected to Venue__c via a Lookup relationship. When attempting to create a Roll-Up Summary field on Venue__c, the option is unavailable in the field type list. What must the administrator do to enable the creation of a Roll-Up Summary field on the Venue object?

  1. Convert the Lookup relationship field on Reservation__c to a Master-Detail relationship.Answer
  2. B
    Create a cross-object formula field on Venue__c that references the revenue field on Reservation__c.
  3. C
    Change the Organization-Wide Default (OWD) sharing setting on Reservation__c to Controlled by Parent.
  4. D
    Delete all existing Reservation__c records so cascading deletion rules permit calculation fields.

Answer

Convert the existing Lookup relationship field on the child object to a Master-Detail relationship.
Salesforce Roll-Up Summary fields summarize data from child detail records onto a parent master record. This feature is exclusively available when the parent and child objects are linked by a Master-Detail relationship. Converting the existing Lookup field to a Master-Detail field on the child object enables the Roll-Up Summary field type on the parent object.

Step-by-Step Solution

1
Analyze the relationship requirement for Roll-Up Summary fields.
Declarative Roll-Up Summary fields require a Master-Detail relationship between the parent and child objects.
Salesforce native Roll-Up Summary field creation is restricted to the master side of a Master-Detail relationship and cannot be created across a Lookup relationship.
2
Determine the necessary configuration change.
The Lookup field on Reservation__c must be converted to a Master-Detail field.
Converting the field type converts the relationship structure, satisfying the prerequisite for creating a Roll-Up Summary field on Venue__c.

Key Concept

Roll-Up Summary Relationship Requirements
Estimated Time:1m 15s
Rate this question