Soru

Zorluk: Çok zorCustom Fields and Data Types

An administrator at a financial advisory enterprise needs to display the total monetary value of all child holdings on a parent portfolio object, Investment_Portfolio__c. Currently, the child object, Holding__c, links to Investment_Portfolio__c through a Lookup relationship. When attempting to create a Roll-Up Summary field on Investment_Portfolio__c to calculate the total holding values, the administrator finds that the Roll-Up Summary field type is disabled. Which action must the administrator perform to enable the creation of the Roll-Up Summary field?

  1. A
    Create a Roll-Up Summary field directly on the Holding__c child object to calculate aggregate amounts from the parent record.
  2. B
    Map the custom lookup field to a Lead object custom field configuration in Object Manager prior to enabling aggregate field options.
  3. Convert the Lookup relationship field on Holding__c to a Master-Detail relationship after ensuring all existing Holding__c records have a populated lookup value.Cevap
  4. D
    Assign the existing lookup field to a dedicated Record Type on Investment_Portfolio__c to unlock Roll-Up Summary capabilities.

Cevap

Convert the Lookup relationship field on Holding__c to a Master-Detail relationship after ensuring all existing Holding__c records have a populated lookup value.
Native Roll-Up Summary fields are exclusively available on the master object within a Master-Detail relationship. To enable this option on Investment_Portfolio__c, the lookup field on Holding__c must first be converted to a Master-Detail relationship. Before converting a Lookup to a Master-Detail relationship, every existing child record must have a value in the lookup field because master-detail child records cannot exist without a parent.

Adım Adım Çözüm

1
Identify the relationship requirement for Roll-Up Summary fields.
Recognize that Roll-Up Summary fields can only be created on the parent (master) object in a Master-Detail relationship.
Lookup relationships do not support native declarative Roll-Up Summary fields.
2
Determine the prerequisites for converting a Lookup relationship to a Master-Detail relationship.
Verify that every existing record on the child object (Holding__c) contains a valid, non-null value in the lookup field.
Master-Detail relationships mandate parent record reference on all detail records; null values prevent data type conversion.
3
Convert the field data type and create the Roll-Up Summary field.
Change the relationship field type on Holding__c to Master-Detail, then navigate to Investment_Portfolio__c to create the Roll-Up Summary field.
Once the Master-Detail relationship is established, the Roll-Up Summary field option becomes enabled on the parent object.

Anahtar Kavram

Master-Detail vs. Lookup Relationship Capabilities and Roll-Up Summary Conversion Rules
Tahmini Süre:2m 0s
Bu soruyu puanla