Soru

Zorluk: OrtaObject Relationships (Lookup, Master-Detail, Many-to-Many)

A Salesforce Administrator at an enterprise software firm needs to model a data structure to track software license allocations across corporate departments. A single software license can be allocated to multiple departments, and a single department can hold allocations for multiple software licenses. Each allocation must record unique metadata such as seat count and allocation date. Furthermore, if either a software license or a department record is deleted, its associated allocation records must be automatically removed. Which two configuration steps should the administrator take to fulfill these requirements? (Select 2 answers.)

  1. Create a custom junction object with two Master-Detail relationship fields linking to the Software License and Department objects.Cevap
  2. Add custom fields for seat count and allocation date directly onto the custom junction object.Cevap
  3. C
    Create a custom junction object with two Lookup relationship fields to ensure allocation records are preserved if a parent record is deleted.
  4. D
    Create Roll-Up Summary fields on the Department object pointing directly to a Lookup relationship on the Software License object.

Cevap

To model a many-to-many relationship with automatic cascade deletion, the administrator must create a custom junction object containing two Master-Detail relationship fields (referencing Software License and Department) and place the allocation-specific fields (seat count and allocation date) directly on that junction object.
A many-to-many relationship in Salesforce requires a custom junction object. Using two Master-Detail relationship fields ensures that deleting either a Software License or a Department record automatically deletes the associated allocation record. Storing seat count and allocation date on the junction object properly captures metadata specific to each allocation.

Adım Adım Çözüm

1
Identify the relationship requirements between Software License and Department.
Since both objects have a multi-directional relationship (many-to-many), a custom junction object is required.
Salesforce handles many-to-many data modeling via a junction object.
2
Determine the appropriate relationship field types.
Use Master-Detail relationships from the junction object to both parent objects.
Master-Detail relationships enforce cascading record deletion when a master record is deleted and enable roll-up summary functionality.
3
Define where relationship-specific metadata fields should reside.
Place seat count and allocation date custom fields on the custom junction object.
Attributes specific to the intersection/allocation of the two entities must be stored on the junction object.

Anahtar Kavram

Junction Objects and Master-Detail Relationship Rules
Bu soruyu puanla