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?
- 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
- BCreate a cross-object formula field on the Invoice__c object to aggregate the total transaction amount across the Lookup relationship.
- CChange the relationship field on Invoice__c to a Master-Detail relationship so that deleting a child transaction will not cascade delete the invoice record.
- DEnable 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
Anahtar Kavram
Roll-Up Summary Field Relationship Requirements
Tahmini Süre:1m 30s