An administrator at an IT services firm is instructed to create a field on the custom parent object, Project__c, that calculates the total number of related completed child Project_Milestone__c records using native platform capabilities without code or automation flows. When attempting to create a Roll-Up Summary field on Project__c, the administrator notices that the Roll-Up Summary field type option is disabled. The current relationship between Project__c and Project_Milestone__c is a Lookup relationship. Which administrative action is required to enable the creation of the Roll-Up Summary field?
- Convert the existing Lookup relationship field on Project_Milestone__c to a Master-Detail relationship after ensuring all child records have a populated parent lookup value.Cevap
- BCreate a cross-object formula field directly on Project__c using the COUNT function to reference the child Project_Milestone__c lookup records.
- CModify the field-level security on the child object so that record deletion automatically cascade-deletes related lookup records.
- DEnable Dynamic Forms on the Project__c Lightning record page to allow custom aggregation options for lookup fields.
Cevap
Convert the existing Lookup relationship field on Project_Milestone__c to a Master-Detail relationship after ensuring all child records have a populated parent lookup value.
Native Salesforce Roll-Up Summary fields are strictly supported on the master object of a Master-Detail relationship. To enable this field type when objects are linked via a Lookup relationship, the administrator must convert the lookup field on the child object to a Master-Detail relationship. Before converting, every existing child record must have a populated value in the lookup field.
Adım Adım Çözüm
Anahtar Kavram
Roll-Up Summary Field Relationship Requirements and Field Conversion