A Salesforce administrator at an aviation charter company is designing a custom object named Flight Reservation to track client trips associated with Account records. The management team requires that all flight reservations are automatically removed if their parent Account record is deleted, and that total charter expenditure is automatically aggregated and displayed on the Account record. Which configuration fulfills these requirements?
- Create a Master-Detail relationship on Flight Reservation pointing to Account, and create a Roll-Up Summary field on Account.Cevap
- BCreate a Master-Detail relationship on Flight Reservation pointing to Account, but configure the relationship so detail records are preserved when an Account is deleted.
- CCreate a Lookup relationship on Flight Reservation pointing to Account, and create a Roll-Up Summary field on Account.
- DCreate a Lookup relationship on Flight Reservation pointing to Account, and use Dynamic Forms visibility rules on the Account Lightning Page to calculate expenditures.
Cevap
Create a Master-Detail relationship on Flight Reservation pointing to Account, and create a Roll-Up Summary field on Account.
Establishing a Master-Detail relationship with Account as the master object ensures that deleting an Account automatically deletes associated Flight Reservation records. Furthermore, Master-Detail relationships natively support Roll-Up Summary fields on the master object, allowing the administrator to calculate aggregate expenditure metrics directly on Account records.
Adım Adım Çözüm
Anahtar Kavram
Master-Detail vs. Lookup Relationship Capabilities