A Salesforce Administrator at a software company tracks user access using two custom objects: Software_License__c (parent) and License_Assignment__c (child). The two objects are currently connected via a lookup relationship. The administrator receives a requirement to display the total count of active assignment records directly on each Software_License__c record page using a declarative field. When trying to create a new Roll-Up Summary field on Software_License__c, the administrator finds that the Roll-Up Summary field type option is disabled. Which action must the administrator take to allow the creation of a Roll-Up Summary field on the parent object?
- Convert the lookup relationship field on the License_Assignment__c object to a master-detail relationship after verifying all existing child records have a populated lookup value.Cevap
- BCreate a cross-object formula field on Software_License__c using an aggregate formula function to count related records across the existing lookup relationship.
- CChange the Organization-Wide Default (OWD) sharing setting on License_Assignment__c to 'Controlled by Parent' to automatically unlock roll-up summary field creation.
- DEnable the 'Allow Roll-Up Summaries on Lookup Relationships' checkbox within Object Manager settings for the Software_License__c object.
Cevap
Convert the existing lookup field on the child object to a master-detail relationship after ensuring all child records contain populated lookup values.
Standard Roll-Up Summary fields in Salesforce are only supported on the parent object in a Master-Detail relationship. Converting the lookup field on the child object to a master-detail relationship (which requires ensuring all child records have populated lookup values) enables the Roll-Up Summary field type on the parent object.
Adım Adım Çözüm
Anahtar Kavram
Roll-Up Summary Field Relationship Requirements