Soru

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

A company requires a data model that links a custom object named Work_Order__c to another custom object named Technician__c in a many-to-many relationship. Additionally, administrators must display the total number of assigned work orders directly on the Technician__c record using native declarative features. Which two configuration steps must the administrator perform to fulfill these requirements? (Choose 2 answers)

  1. Create a custom junction object with two Master-Detail relationship fields pointing to Work_Order__c and Technician__c.Cevap
  2. Create a Roll-Up Summary field on the Technician__c object that counts the related junction object records.Cevap
  3. C
    Create a custom junction object with two Lookup relationship fields pointing to Work_Order__c and Technician__c.
  4. D
    Create a Roll-Up Summary field on the Work_Order__c object to aggregate data directly from Technician__c without a junction object.

Cevap

The administrator must create a custom junction object with Master-Detail relationships to both objects and create a Roll-Up Summary field on the Technician__c object.
To create a many-to-many relationship between two objects, a custom junction object with two Master-Detail relationships must be configured. Because the relationship is a Master-Detail, a native Roll-Up Summary field can be placed on the parent object (Technician__c) to count or aggregate the related child junction records.

Adım Adım Çözüm

1
Establish many-to-many relationship architecture
Create a custom junction object containing two Master-Detail relationship fields: one pointing to Work_Order__c and one to Technician__c.
Salesforce models many-to-many relationships by using a junction object that sits as the child detail object between two master parent objects.
2
Configure native summary reporting on the master object
Create a Roll-Up Summary field on Technician__c using the COUNT aggregate function on the junction object records.
Roll-Up Summary fields are only supported on the Master side of Master-Detail relationships.

Anahtar Kavram

Junction Objects and Roll-Up Summary Field Capabilities
Bu soruyu puanla