Soru

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

An administrator is designing a custom data model in Salesforce to manage corporate sponsorship agreements. The organization needs to connect a custom object named Sponsorship_Campaign__c with a custom object named Corporate_Sponsor__c in a many-to-many relationship. The finance team requires a Roll-Up Summary field on Sponsorship_Campaign__c to calculate the total pledged contribution across all connected sponsors. Additionally, administrators must be able to move existing sponsorship records to a different campaign if an agreement is modified.

Which two configuration steps or relationship characteristics must the administrator implement to satisfy these requirements? (Select 2 answers.)

  1. Create a custom junction object containing Master-Detail relationship fields to both Sponsorship_Campaign__c and Corporate_Sponsor__c.Cevap
  2. Enable the 'Allow reparenting' option on the Master-Detail relationship field pointing to Sponsorship_Campaign__c.Cevap
  3. C
    Create a Lookup relationship field on the junction object for Sponsorship_Campaign__c to enable Roll-Up Summary field creation on the campaign object.
  4. D
    Configure the junction object relationship so that deleting a Sponsorship_Campaign__c record automatically converts child junction records into unlinked standalone records.

Cevap

To implement a many-to-many relationship with roll-up summaries and reassignable records, the administrator must create a custom junction object with Master-Detail relationships to both parent objects and select the 'Allow reparenting' setting on the Master-Detail relationship field.
Creating a custom junction object with two Master-Detail relationships models a many-to-many relationship and unlocks the ability to create Roll-Up Summary fields on the master object. Enabling 'Allow reparenting' on the Master-Detail field allows administrators to reassign child junction records to a different master campaign record when business needs change.

Adım Adım Çözüm

1
Evaluate the relationship type needed for many-to-many modeling and aggregate calculations.
A custom junction object with two Master-Detail relationships is required to establish the many-to-many model and allow Roll-Up Summary fields on the master objects.
Lookup relationships do not support Roll-Up Summary fields or model native many-to-many relationships with master security inheritance.
2
Address the requirement to move records between campaigns.
Check the 'Allow reparenting' setting on the Master-Detail field pointing to Sponsorship_Campaign__c.
Detail records in Master-Detail relationships are locked to their master record upon creation unless reparenting is explicitly enabled in the field definition.

Anahtar Kavram

Many-to-Many Relationships and Master-Detail Field Capabilities
Bu soruyu puanla