A Salesforce Administrator at a heavy machinery rental company needs to create a field on the custom object Equipment_Fleet__c to automatically display the date of the most recent inspection recorded on related Inspection_Log__c records. However, when navigating to the Custom Field Creation Wizard on Equipment_Fleet__c, the Roll-Up Summary field type option is grayed out and cannot be selected. What is the root cause of this limitation?
- The relationship between Equipment_Fleet__c and Inspection_Log__c is defined as a Lookup relationship rather than a Master-Detail relationship.Cevap
- BRoll-Up Summary fields cannot perform aggregate MAX calculations on Date data types across related child objects.
- CThe Organization-Wide Default (OWD) sharing setting for the Inspection_Log__c detail object is configured as Controlled by Parent.
- DRoll-Up Summary fields can only be created when child records are marked for cascading deletion upon parent record removal.
Cevap
The Roll-Up Summary field type is unavailable because Equipment_Fleet__c and Inspection_Log__c are connected via a Lookup relationship instead of a Master-Detail relationship.
Native Salesforce Roll-Up Summary fields are strictly supported on the master object of a Master-Detail relationship. If two objects are connected via a Lookup relationship, the Roll-Up Summary field option will be grayed out and unavailable during field creation.
Adım Adım Çözüm
Anahtar Kavram
Roll-Up Summary Field Relationship Requirements