Soru

Zorluk: OrtaFormula Fields and Roll-Up Summary Fields

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?

  1. 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
  2. B
    Change the Organization-Wide Default sharing setting for Maintenance_Request__c to Controlled by Parent to unlock roll-up summary functionality on the lookup relationship.
  3. C
    Create a cross-object formula field on Property__c that uses the SUM() function to aggregate estimated costs from child Maintenance_Request__c records.
  4. D
    Delete 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

1
Identify the relationship requirement for Roll-Up Summary fields.
Roll-Up Summary fields can only be created on the master object of a Master-Detail relationship.
Salesforce native Roll-Up Summary functionality relies on the strict data dependency and cascade behavior of Master-Detail relationships.
2
Determine the necessary conversion steps from Lookup to Master-Detail.
Ensure all existing child records (Maintenance_Request__c) have a value in the lookup field before converting.
Master-Detail fields are mandatory on child records; Salesforce prevents converting a lookup to master-detail if any child record contains a blank lookup field.

Anahtar Kavram

Roll-Up Summary Field Relationship Requirements and Lookup Conversion
Bu soruyu puanla