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.)
- Create a custom junction object containing Master-Detail relationship fields to both Sponsorship_Campaign__c and Corporate_Sponsor__c.Cevap
- Enable the 'Allow reparenting' option on the Master-Detail relationship field pointing to Sponsorship_Campaign__c.Cevap
- CCreate a Lookup relationship field on the junction object for Sponsorship_Campaign__c to enable Roll-Up Summary field creation on the campaign object.
- DConfigure 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
Anahtar Kavram
Many-to-Many Relationships and Master-Detail Field Capabilities