Soru

Zorluk: OrtaFormula Fields and Roll-Up Summary Fields

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?

  1. The relationship between Equipment_Fleet__c and Inspection_Log__c is defined as a Lookup relationship rather than a Master-Detail relationship.Cevap
  2. B
    Roll-Up Summary fields cannot perform aggregate MAX calculations on Date data types across related child objects.
  3. C
    The Organization-Wide Default (OWD) sharing setting for the Inspection_Log__c detail object is configured as Controlled by Parent.
  4. D
    Roll-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

1
Identify the field requirement
The requirement asks to aggregate child record data (MAX inspection date) onto a parent custom object.
Aggregating values across related records is typically handled by Roll-Up Summary fields.
2
Evaluate declarative roll-up summary requirements
Native Roll-Up Summary fields in Salesforce require a Master-Detail relationship between the parent (master) and child (detail) objects.
Lookup relationships do not support native declarative Roll-Up Summary fields.
3
Determine the cause of the disabled field type
Since the field type option is disabled during field creation on the parent object, the underlying relationship must currently be a Lookup relationship.
Salesforce restricts the creation of Roll-Up Summary fields to master objects in Master-Detail relationships.

Anahtar Kavram

Roll-Up Summary Field Relationship Requirements
Bu soruyu puanla