An administrator at Cloud Kicks is designing a custom object schema for tracking Customer Invoices related to Accounts. The business analyst presents three mandatory requirements:
1. Deleting an Account record must not delete its associated Invoice records.
2. The total dollar amount of all related Invoices must be displayed on the Account record using a standard declarative roll-up field without writing custom code or Apex triggers.
3. Invoices must maintain independent Organization-Wide Defaults (OWD) and sharing access from Accounts.
Which architectural constraint prevents fulfilling all three requirements using standard declarative relationship features alone?
- Standard roll-up summary fields require a Master-Detail relationship, which automatically cascades record deletion to child records and forces child records to inherit the parent object's sharing permissions.Cevap
- BLookup relationships support standard roll-up summary fields only when the lookup field is configured as a required field on the child object layout.
- CMaster-Detail relationships allow child records to maintain independent Organization-Wide Defaults if the 'Allow Reparenting' setting is enabled on the relationship field.
- DConverting a Lookup relationship to a Master-Detail relationship preserves existing custom sharing rules and role hierarchy access settings on the child object.
Cevap
Standard roll-up summary fields require a Master-Detail relationship, which automatically cascades record deletion to child records and forces child records to inherit the parent object's sharing permissions.
Standard declarative roll-up summary fields are strictly supported only on Master-Detail relationships. However, Master-Detail relationships enforce two mandatory platform behaviors: deleting the master record cascades deletion to all detail records, and detail records inherit their access controls ('Controlled by Parent') from the master record. Because requirements 1 and 3 mandate independent security and preservation of records upon deletion, standard declarative tools alone cannot satisfy all three criteria without custom automation such as Record-Triggered Flows or Apex.
Adım Adım Çözüm
Anahtar Kavram
Master-Detail vs. Lookup Relationship Capabilities and Constraints
Tahmini Süre:2m 0s