An administrator at a global telecommunications company needs to track service warranties using a custom object named Equipment_Warranty__c. The object currently has an existing Lookup relationship to the standard Asset object. The business requires calculating the sum of claim amounts directly on the Asset record using a Roll-Up Summary field and ensuring that deleting an Asset automatically deletes all associated Equipment_Warranty__c records. However, several existing Equipment_Warranty__c records currently have null values in their Asset lookup field. Which sequence of actions must the administrator perform to satisfy these business requirements?
- Populate the Asset field on all existing Equipment_Warranty__c records, convert the relationship to Master-Detail, and then create the Roll-Up Summary field on the Asset object.Answer
- BCreate the Roll-Up Summary field on the Asset object directly using the existing Lookup relationship without converting the field type.
- CConvert the Lookup field to a Master-Detail relationship immediately, allowing Salesforce to automatically reassign orphan Equipment_Warranty__c records to a default Asset.
- DConfigure Dynamic Forms field visibility on the Equipment_Warranty__c page layout to make the Asset field mandatory before creating a summary formula field.
Answer
Populate the Asset field on all existing Equipment_Warranty__c records, convert the relationship to Master-Detail, and then create the Roll-Up Summary field on the Asset object.
The requirement to calculate aggregated child values via native Roll-Up Summary fields and enforce automatic cascading deletion necessitates a Master-Detail relationship. Converting a Lookup field to a Master-Detail field requires that every existing record has a populated parent lookup value. Therefore, populating all null values, converting the relationship, and creating the Roll-Up Summary field is the correct sequence.
Step-by-Step Solution
Key Concept
Converting Lookup Relationships to Master-Detail and Roll-Up Summary Field Eligibility
Estimated Time:2m 0s