https://help.salesforce.com/HTViewHelpDoc?id=relationships_considerations.htm
If both associated master records are deleted, the junction object record is deleted permanently and can't be restored.
Sharing access to a junction object record is determined by a user's sharing access to both associated master records and the Sharing Setting option on the relationship field.
To delete this object, manually delete junction object records until the count is fewer than 200.
- Look and feel: The junction object's detail and edit pages use the color and any associated icon of the primary master object.
- Record ownership: The junction object records inherit the value of the Owner field from their associated primary master record. Because objects on the detail side of a relationship do not have a visible Owner field, this is only relevant if you later delete both master-detail relationships on your junction object.
- Division: If your organization uses divisions to segment data, the junction object records inherit their division from their associated primary master record.
Similar to the record ownership, this is only relevant if you later delete both master-detail relationships.
The second master-detail relationship you create on your junction object becomes the secondary relationship.
If you delete the primary master-detail relationship or convert it to a lookup relationship, the secondary master object becomes primary.
- Clear the value of this field This is the default.
Clearing the field is a good choice when the field does not have to contain a value from the associated lookup record. - Don’t allow deletion of the lookup record that’s part of a lookup relationship
This option restricts the lookup record from being deleted if you have any dependencies, such as a workflow rule, built on the relationship. - Delete this record also Available only if a custom object contains the lookup relationship, not if it’s contained by a standard object. However, the lookup object can be either standard or custom. Choose when the lookup field and its associated record are tightly coupled and you want to completely delete related data.Warning
Choosing Delete this record also can result in a cascade-delete. A cascade-delete bypasses security and sharing settings, which means users can delete records when the target lookup record is deleted even if they don’t have access to the records. To prevent records from being accidentally deleted, cascade-delete is disabled by default. Contact Salesforce to get the cascade-delete option enabled for your organization.
Cascade-delete and its related options are not available for lookup relationships to business hours, community, lead, price book, product, or user objects.
- Only lookup, external lookup, and indirect lookup relationships are available for external objects. No other relationship types are supported.
- Depending on the availability of the external system, related lists of child external objects may load slowly when users view the parent record detail pages.
- Relationships that involve external objects allow users to create child records from the record detail pages of parent records. However, the relationship field on each new child record isn’t automatically populated to identify the parent record.
- Syncing doesn’t create relationship fields on the external objects in your Salesforce org. However, you can change the field type of a sync-created custom field to Lookup Relationship, External Lookup Relationship, or Indirect Lookup Relationship. Changing the field type of an existing custom field is simpler and more efficient than manually creating a relationship field on the external object.
For example, suppose that the external system has a foreign key relationship. Syncing the related tables creates a text field in your org for the external column that identifies the foreign keys. To reflect the foreign key relationship within your org, change the field type of that text field to External Lookup Relationship.
- A relationship field is a type of custom field. Therefore, like all custom fields on an external object, relationship fields can be overwritten when you sync the external object. See the sync considerations for each Salesforce Connect adapter that you use.
- Cascade-delete isn’t available for external object relationships.
- In Salesforce Classic only:
- Indirect lookup relationship fields don’t display the expected names of parent records. Instead, each indirect lookup field displays the value of the target field on the parent object. To find related records, target field values are matched against the values of the indirect lookup relationship field on the child object. The target field, which has the External ID and Unique attributes, is selected when an indirect lookup field is created.
- External lookup relationship fields don’t always display the expected names of parent records. If your org has previously retrieved the parent record, the external lookup relationship field displays the name as expected. Otherwise, the external lookup field displays either the parent object ID or the value of the parent object’s External ID standard field. The latter appears by default. If, however, a custom field on the parent object has the Is Name Fieldattribute, the parent object ID is displayed. If you see an ID in an external lookup field, reload the page to replace the ID with the name.
- Lookup search isn’t available for external lookup relationship fields. To edit an external lookup relationship field, manually enter the value of the External ID standard field for the parent record. This limitation doesn’t apply when the parent external object is associated with the cross-org adapter for Salesforce Connect.
- Lookup search isn’t available for indirect lookup relationship fields. To edit an indirect lookup relationship field, manually enter the value of the target field of the parent record. The target field is the custom field with External ID and Unique attributes that was selected when the indirect lookup relationship was created. To determine related records, Salesforce matches target field values against the values of the indirect lookup relationship field on the child object.
- With external lookup and indirect lookup relationships, the parent record appears as a clickable link in the relationship field on the child record. If the child record is viewed by a user who doesn’t have access to the parent record, the parent record appears in the relationship field as plain text instead of a link.
- Lookup filters aren’t available for external lookup relationship fields.
- Indirect lookup relationship fields can be created on external objects only.
- Only objects that have a custom field with the External ID and Uniqueattributes are available as parent objects in indirect lookup relationships. If you don't see the desired object when you create an indirect lookup relationship field, add a custom unique, external ID field to that object.
- If the external system uses case-sensitive values in the specified External Column Name, make sure that the parent object field is also case-sensitive. When you define the parent object’s custom field, select External ID, Unique, and Treat "ABC" and "abc" as different values (case sensitive).
- Lookup relationships allow data from the two related objects to be joined in one report.
- Master-detail relationships allow data from three objects to be joined in one report: the master object, the detail object, plus one other lookup object. If the detail object has multiple lookup relationships, a separate report type is available based on each lookup.
- Many-to-many relationships provide two standard report types that join the master objects and the junction object. The report types are:
- “Primary master with junction object and secondary master” in the primary master object's report category.
- “Secondary master with junction object and primary master” in the secondary master object's report category.
Relationship Type | Standard Report Types | Report Type Category |
---|---|---|
Lookup | Object by itself Object with first lookup Object with second lookup Object with third lookup | Based on the object |
Master-Detail | Master object by itself Master object with detail object Master object with detail object and first lookup Master object with detail object and second lookup Master object with detail object and third lookup | Master object |
Many-to-Many | Primary master object by itself Secondary master object by itself Primary master object with junction object and secondary master object Secondary master object with junction object and primary master object | Primary master object and Secondary master object |

'Salesforce - Admin - Trailhead' 카테고리의 다른 글
2. Data Modeling (0) | 2017.01.19 |
---|
Comments