Soru

Zorluk: Çok zorFormula Fields and Roll-Up Summary Fields

Cloud Kicks tracks recurring customer orders using a custom parent object named Subscription__c and a custom child object named Subscription_Line_Item__c, which are linked by a Master-Detail relationship. Each Subscription__c record also maintains a Lookup relationship to a standard Account record. The Salesforce Administrator needs to configure automated field calculations and data roll-ups to display total charges and cross-object metrics on the Subscription__c record.

Which TWO statements accurately describe the capabilities, limitations, and re-evaluation behaviors of Roll-Up Summary fields and Formula fields in this architectural setup? (Select 2 answers)

  1. A Roll-Up Summary field cannot be created on Subscription_Line_Item__c to summarize fields from the related Account record because Roll-Up Summary fields are only supported on the master object in a Master-Detail relationship.Cevap
  2. A Roll-Up Summary field on Subscription__c cannot calculate a SUM using a custom formula field on Subscription_Line_Item__c if that formula field references fields on another object across a relationship.Cevap
  3. C
    If the administrator converts the Master-Detail relationship between Subscription__c and Subscription_Line_Item__c into a Lookup relationship, existing Roll-Up Summary fields on Subscription__c will remain active and continue updating.
  4. D
    Deleting a master Subscription__c record will automatically decouple all child Subscription_Line_Item__c records and retain them as standalone records while preserving their cross-object formula values.

Cevap

The two correct statements are: 1) A Roll-Up Summary field cannot be created on Subscription_Line_Item__c to summarize fields from the related Account record because Roll-Up Summary fields are only supported on the master object in a Master-Detail relationship, and 2) A Roll-Up Summary field on Subscription__c cannot calculate a SUM using a custom formula field on Subscription_Line_Item__c if that formula field references fields on another object across a relationship.
The statement explaining that roll-up summary fields cannot be created on the child object to aggregate data from the parent Account is correct because roll-up summary fields can only be created on the master object in a Master-Detail relationship. Furthermore, the statement explaining that a roll-up summary field cannot summarize a formula field containing cross-object references is correct because Salesforce explicitly blocks roll-up summaries from aggregating formula fields that pull values from span relationships across objects.

Adım Adım Çözüm

1
Analyze relationship requirements for Roll-Up Summary fields.
Roll-up summary fields can only be placed on the master object of a Master-Detail relationship. They cannot be created on detail records or on objects linked only via Lookup relationships.
Salesforce enforces master-detail relationships as a strict prerequisite for roll-up summary field creation.
2
Evaluate cross-object formula field restrictions in Roll-Up Summary calculations.
Salesforce prevents Roll-Up Summary fields from aggregating detail formula fields that contain cross-object references (e.g., formula fields referencing Account fields from Subscription_Line_Item__c).
Cross-object formula values are calculated dynamically at runtime and do not trigger database write events, preventing synchronous roll-up recalculation.
3
Evaluate relationship conversion and deletion impacts.
Converting a Master-Detail relationship to Lookup requires deleting all roll-up summary fields, and deleting a master record cascades deletion to all detail records.
Master-detail relationships control record lifecycle and cascading actions in Salesforce architecture.

Anahtar Kavram

Roll-Up Summary Fields vs Lookup Relationships and Cross-Object Formula Limitations
Bu soruyu puanla