An administrator at Cloud Kicks needs to track maintenance history on custom machinery. Currently, a custom child object named Maintenance_Log__c connects to a custom parent object named Machine__c via a standard Lookup relationship. The business analyst specifies two new requirements: first, the Machine__c record must automatically display the total cost of all related maintenance logs using a declarative aggregate field; second, deleting a Machine__c record must automatically remove all of its associated Maintenance_Log__c records. When attempting to create the aggregate field on Machine__c, the administrator notices that the Roll-Up Summary field type is unavailable. Which action must the administrator take to satisfy both business requirements?
- Ensure every existing Maintenance_Log__c record has a populated Machine__c lookup value, then convert the relationship field type on Maintenance_Log__c from Lookup to Master-Detail.Cevap
- BCreate a Roll-Up Summary field directly on the Machine__c object while maintaining the Lookup relationship, relying on schema refresh to enable the field type.
- CModify the Lookup field configuration on Maintenance_Log__c to allow cascade deletion, then build a cross-object formula field on Machine__c using the aggregate SUM function.
- DConvert the Lookup field to a Master-Detail field directly on Maintenance_Log__c without auditing existing records, as Salesforce automatically populates null parent references.