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)
- 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
- 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
- CIf 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.
- DDeleting 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
Anahtar Kavram
Roll-Up Summary Fields vs Lookup Relationships and Cross-Object Formula Limitations