An administrator at a biotechnology firm is configuring custom fields on a custom object named Clinical_Trial__c. The business requires tracking total trial participant counts by aggregating patient numbers from child records on a custom object named Trial_Site__c. Currently, Trial_Site__c is linked to Clinical_Trial__c using a Lookup relationship. The administrator attempts to create a Roll-Up Summary field on Clinical_Trial__c to calculate total participants, but the Roll-Up Summary data type is unavailable in the field creation wizard. Which administrative action is required to enable the creation of the Roll-Up Summary field?
- Convert the existing Lookup relationship field on Trial_Site__c to a Master-Detail relationship after verifying that all Trial_Site__c records have a populated lookup value.Answer
- BConvert the Clinical_Trial__c object to a child object by creating a Master-Detail relationship field on Clinical_Trial__c that references Trial_Site__c.
- CCreate a standard Roll-Up Summary field on Trial_Site__c instead, as Roll-Up Summary fields can only be created on child objects linked via Lookup relationships.
- DMap the Lookup relationship field during Lead conversion so that Salesforce automatically changes the relationship data type upon record creation.
Answer
Convert the existing Lookup relationship field on Trial_Site__c to a Master-Detail relationship after verifying that all Trial_Site__c records have a populated lookup value.
To create a native Roll-Up Summary field in Salesforce, the parent object must be the master in a Master-Detail relationship. Because Trial_Site__c is currently connected to Clinical_Trial__c via a Lookup relationship, the Roll-Up Summary option is disabled. Converting the lookup field on Trial_Site__c to a Master-Detail relationship enables the Roll-Up Summary field type on Clinical_Trial__c. This conversion requires that all existing Trial_Site__c records have a value in the lookup field prior to conversion.
Step-by-Step Solution
Key Concept
Roll-Up Summary Field Eligibility and Relationship Type Conversion