A Salesforce Administrator is designing a custom data structure for a real estate company to track properties and maintenance requests. The business requirements state that every Maintenance Ticket record (`Maintenance_Ticket__c`) must be linked to a parent Property record (`Property__c`). If a Property record is deleted, all associated Maintenance Ticket records must be automatically deleted from the system. Furthermore, the administrator needs to display the total calculated cost of all maintenance requests directly on the parent Property record. Which relationship configuration should the administrator implement to meet these requirements?
- Create a Master-Detail relationship field on Maintenance_Ticket__c pointing to Property__c, and create a Roll-Up Summary field on Property__c.Answer
- BCreate a Lookup relationship field on Maintenance_Ticket__c pointing to Property__c, and create a Roll-Up Summary field on Property__c.
- CCreate a Master-Detail relationship field on Property__c pointing to Maintenance_Ticket__c, and create a Roll-Up Summary field on Maintenance_Ticket__c.
- DCreate a Lookup relationship field on Maintenance_Ticket__c pointing to Property__c, and use a standard cross-object formula field on Property__c to aggregate total costs.
Answer
Create a Master-Detail relationship field on Maintenance_Ticket__c pointing to Property__c, and create a Roll-Up Summary field on Property__c.
Defining a Master-Detail relationship field on the child object (`Maintenance_Ticket__c`) linking to the parent object (`Property__c`) ensures that deleting a property record cascades deletion to all associated tickets. Additionally, it allows the creation of a declarative Roll-Up Summary field on `Property__c` to sum the total repair costs of related tickets.
Step-by-Step Solution
Key Concept
Master-Detail Relationships and Roll-Up Summary Capabilities