A Salesforce Administrator at a property management company needs to display the total estimated cost of active maintenance work on the parent custom object, Property__c. Currently, Property__c and Maintenance_Request__c are linked by a Lookup relationship. When attempting to create a new summary field on Property__c, the administrator discovers that the Roll-Up Summary field type is disabled. Which configuration change must the administrator make to allow the creation of a Roll-Up Summary field on the Property object?
- Convert the Lookup relationship field on Maintenance_Request__c to a Master-Detail relationship after populating a Property value on all existing child records.Cevap
- BChange the Organization-Wide Default sharing setting for Maintenance_Request__c to Controlled by Parent to unlock roll-up summary functionality on the lookup relationship.
- CCreate a cross-object formula field on Property__c that uses the SUM() function to aggregate estimated costs from child Maintenance_Request__c records.
- DDelete the existing lookup field on Maintenance_Request__c and create a new Master-Detail relationship field on Property__c that points to Maintenance_Request__c.
Cevap
Convert the Lookup relationship field on Maintenance_Request__c to a Master-Detail relationship after populating a Property value on all existing child records.
Roll-Up Summary fields can only be created on the master object in a Master-Detail relationship. Converting the existing lookup field on the detail object (Maintenance_Request__c) to a Master-Detail relationship enables roll-up capabilities on the master object (Property__c). Before performing the conversion, all existing child records must have a parent value in the lookup field.
Adım Adım Çözüm
Anahtar Kavram
Roll-Up Summary Field Relationship Requirements and Lookup Conversion