A Salesforce Administrator at a renewable energy firm needs to calculate and display the total power generation capacity from all installed solar units on the parent custom object, Solar_Park__c. Currently, the child object, Solar_Unit__c, is connected to Solar_Park__c using a Lookup relationship. When attempting to create a new field on Solar_Park__c, the Administrator discovers that the Roll-Up Summary field type is unavailable. Which action should the Administrator take to enable the creation of the Roll-Up Summary field?
- Convert the existing Lookup relationship on Solar_Unit__c to a Master-Detail relationship after ensuring all child records have a populated parent lookup value.Cevap
- BChange the Organization-Wide Default (OWD) sharing setting on the Solar_Unit__c object to Controlled by Parent.
- CCreate a cross-object formula field on Solar_Park__c that references and calculates the total capacity value of the related Solar_Unit__c records.
- DDelete all existing Solar_Unit__c records to reset the schema relationship dependencies before creating a new formula field.
Cevap
Convert the existing Lookup relationship on Solar_Unit__c to a Master-Detail relationship after ensuring all child records have a populated parent lookup value.
Roll-Up Summary fields can only be created on the master object in a Master-Detail relationship. Converting the Lookup relationship on Solar_Unit__c to a Master-Detail relationship (after populating the field on all existing child records) enables the Roll-Up Summary field type on Solar_Park__c.
Adım Adım Çözüm
Anahtar Kavram
Roll-Up Summary Field Relationship Requirements