An administrator at a medical technology company is configuring a custom data model for tracking equipment maintenance. The business requires that every maintenance log record must be linked to a master diagnostic equipment record, and deleting a diagnostic equipment record must automatically remove all associated maintenance log records. Additionally, management needs to view the total cost of all maintenance performed directly on the master diagnostic equipment record. Which two configuration steps should the administrator take to meet these requirements?
- Create a Master-Detail relationship field on the Equipment Maintenance object referencing the Diagnostic Machine object.Cevap
- Create a Roll-Up Summary field on the Diagnostic Machine object to aggregate total costs from related Equipment Maintenance records.Cevap
- CCreate a Lookup relationship field on the Equipment Maintenance object and build a Roll-Up Summary field on the Diagnostic Machine object.
- DCreate a Lookup relationship field on the Equipment Maintenance object and enable standard cascading deletion on the lookup definition.
Cevap
The administrator must create a Master-Detail relationship field on the Equipment Maintenance object referencing the Diagnostic Machine object, and create a Roll-Up Summary field on the Diagnostic Machine object to aggregate cost values.
Establishing a Master-Detail relationship on the child object (Equipment Maintenance) ensures that child records inherit ownership and are automatically deleted if the parent Diagnostic Machine record is deleted. Furthermore, Master-Detail relationships enable the creation of standard Roll-Up Summary fields on the parent master object to aggregate numeric values such as total maintenance costs.
Adım Adım Çözüm
Anahtar Kavram
Standard and Custom Object Relationships and Aggregations