Soru

Zorluk: ZorFormula Fields and Roll-Up Summary Fields

An organization tracks custom Payment_Transaction__c records linked to a parent custom Invoice__c object using a Lookup relationship. The finance team needs a field on the Invoice__c object that automatically calculates the total settled amount from all related Payment_Transaction__c records in real time. However, when trying to create a standard Roll-Up Summary field on the Invoice__c object, the administrator finds that the Roll-Up Summary field type option is disabled. What configuration change must the administrator make to enable the creation of the Roll-Up Summary field on Invoice__c?

  1. Convert the existing Lookup relationship field on Payment_Transaction__c to a Master-Detail relationship field after ensuring all child records have a populated parent.Cevap
  2. B
    Create a cross-object formula field on the Invoice__c object to aggregate the total transaction amount across the Lookup relationship.
  3. C
    Change the relationship field on Invoice__c to a Master-Detail relationship so that deleting a child transaction will not cascade delete the invoice record.
  4. D
    Enable the 'Allow Roll-Up Summaries' setting directly within the definition of the existing Lookup relationship field on Payment_Transaction__c.

Cevap

Convert the existing Lookup relationship field on Payment_Transaction__c to a Master-Detail relationship field after ensuring all child records have a populated parent.
Declarative Roll-Up Summary fields are strictly supported on the master object of a Master-Detail relationship. Converting the lookup field on the child object (Payment_Transaction__c) to a Master-Detail field (after verifying that all child records have parent values populated) allows the administrator to create a Roll-Up Summary field on the parent Invoice__c object.

Adım Adım Çözüm

1
Identify relationship requirements for declarative Roll-Up Summary fields.
Standard declarative Roll-Up Summary fields are only available on the master object in a Master-Detail relationship.
Lookup relationships do not support native roll-up summary fields without custom automation or Apex triggers.
2
Determine where the relationship field resides.
The relationship field resides on the child object (Payment_Transaction__c) pointing to the parent object (Invoice__c).
Child records contain the foreign key (relationship field) referencing the parent record.
3
Evaluate prerequisites for converting Lookup to Master-Detail.
Ensure every existing Payment_Transaction__c record has a valid parent Invoice__c reference populated.
Salesforce prevents converting a Lookup to a Master-Detail relationship if any child record contains a null value in the relationship field.

Anahtar Kavram

Roll-Up Summary Field Relationship Requirements
Tahmini Süre:1m 30s
Bu soruyu puanla