Soru

Zorluk: OrtaStandard and Custom Object Management

A Salesforce administrator at a telecommunications provider is configuring a custom object named Service Audit to track quality evaluations associated with standard Account records. The business requirement dictates that deleting an Account record must automatically delete all associated Service Audit records, and administrators must be able to create a roll-up summary field on the Account object to count total evaluations. Which relationship configuration on the Service Audit object meets these requirements?

  1. Create a Master-Detail relationship field on the Service Audit object referencing the Account object.Cevap
  2. B
    Create a Master-Detail relationship field on the Account object referencing the Service Audit object.
  3. C
    Create a Lookup relationship field on the Service Audit object referencing the Account object and enable optional cascading delete.
  4. D
    Create a Lookup relationship field on the Account object and assign a custom Record Type to govern deletion behavior.

Cevap

Create a Master-Detail relationship field on the Service Audit object referencing the Account object.
Defining a Master-Detail relationship on the custom Service Audit object pointing to the standard Account object allows Account to act as the master. This automatically deletes child Service Audit records whenever their parent Account is deleted, and enables administrators to create Roll-Up Summary fields directly on the Account object.

Adım Adım Çözüm

1
Analyze the requirements for data behavior between Account (standard object) and Service Audit (custom object).
The scenario requires cascading record deletion (deleting master deletes detail) and roll-up summary capability on the parent object.
Master-Detail relationships provide native cascade delete functionality and support Roll-Up Summary fields on the master object.
2
Determine object relationship constraints between standard and custom objects.
Standard objects can act as the Master object, while custom objects can serve as the Detail object.
Salesforce architecture prevents standard objects from being on the detail child side of a Master-Detail relationship.
3
Select the correct field location and relationship type.
Creating the Master-Detail field on the child custom object (Service Audit) pointing to the parent standard object (Account) fulfills all requirements.
Relationship custom fields are always defined on the child/detail object pointing to the parent/master object.

Anahtar Kavram

Standard and Custom Object Master-Detail Relationships and Capabilities
Bu soruyu puanla