An administrator at an IT consulting firm is managing a custom object named Client_Project__c, which is currently connected to the standard Account object through a Lookup relationship. The executive team requests two functional changes: first, if an Account record is deleted, all associated Client_Project__c records must be automatically removed; second, account managers must be able to view a calculated total of all related project budgets directly on the Account record. Which action should the administrator take to accomplish both requirements?
- Convert the Lookup relationship on Client_Project__c to a Master-Detail relationship after ensuring all Client_Project__c records have an assigned Account, then create a Roll-Up Summary field on Account.Answer
- BCreate a Roll-Up Summary field directly on the Account object using the existing Lookup relationship to aggregate the budget totals.
- CEnable the standard Cascade Delete option in Account object settings while maintaining the Lookup relationship.
- DAssign a custom Record Type to Client_Project__c and configure picklist values to handle automatic deletion and budget aggregation.
Answer
Convert the Lookup relationship on Client_Project__c to a Master-Detail relationship after ensuring all Client_Project__c records have an assigned Account, then create a Roll-Up Summary field on Account.
Converting the relationship from Lookup to Master-Detail satisfies both requirements: detail records are automatically deleted when the master Account is deleted, and Master-Detail relationships permit the creation of standard Roll-Up Summary fields on the parent object. To successfully perform the conversion, every existing child record must have a populated parent lookup field.
Step-by-Step Solution
Key Concept
Master-Detail vs Lookup Relationship Capabilities and Conversion Requirements