A Salesforce Administrator at a commercial real estate firm needs to model a relationship between a custom object named Property__c and another custom object named Inspection_Site__c. Business rules require that deleting a Property__c record must automatically delete all related Inspection_Site__c records. Additionally, executive management requires displaying the total count of completed inspections directly on the Property__c record page without using custom Apex code. Which configuration approach should the administrator implement?
- Create a Master-Detail relationship custom field on Inspection_Site__c referencing Property__c, and create a Roll-Up Summary field on Property__c.Cevap
- BCreate a Lookup relationship custom field on Inspection_Site__c referencing Property__c, and create a Roll-Up Summary field on Property__c.
- CCreate a Master-Detail relationship custom field on Property__c referencing Inspection_Site__c, and create a Formula field on Property__c.
- DCreate a Lookup relationship custom field on Inspection_Site__c referencing Property__c with cascade delete enabled via the metadata API.
Cevap
Create a Master-Detail relationship field on the child object Inspection_Site__c referencing the parent Property__c, and create a Roll-Up Summary field on Property__c.
To satisfy both requirements declaratively, a Master-Detail relationship must be defined on the detail object (Inspection_Site__c) pointing to the master object (Property__c). Master-Detail relationships automatically enforce parent-to-child cascade deletion and allow the administrator to build Roll-Up Summary fields on the master object to count or aggregate detail records.
Adım Adım Çözüm
Anahtar Kavram
Master-Detail Relationship Capabilities and Roll-Up Summary Fields
Tahmini Süre:1m 30s