Entity Relationships

Microsoft Dynamics CRM Online supports the following types of relationships:

Hierarchical Relationships

A hierarchical relationship allows each child record to store a reference to one parent record. A parent record can be referenced by an unlimited number of child records. The parent record can display all the child records in an associated view.

Hierarchical relationships provide opportunities to configure a number of behaviors that affect data integrity and the business rules in your organization. There are also limitations on the types of relationships that you can create. More information: Understanding Hierarchical Entity Relationships

When you create or edit a relationship between entities in Microsoft Dynamics CRM Online you must start from one of the entities. Which entity is not important because only one relationship will be created and only one relationship needs to be edited. The terminology used depends on whether you start from the primary entity or the related entity.

Note: It is important to remember that the same relationship can be viewed from either of the two entities that participate in the relationship.

N:N (Many-to-Many) Relationships

Microsoft Dynamics CRM Online Microsoft Dynamics CRM 4.0 introduces the ability to define a N:N Relationship between entities.

A N:N relationship allows users to relate one or more records from another entity to a record of the current entity. A N:N relationship is reciprocal, so records can be related from either entity. A N:N relationship may also be self-referential, meaning that one or more other records of the current entity can be related to a record of the same entity.

A list of any related records can be displayed in an associated view available in the Navigation area of the current entity form and in the form of the other entity.

Users who are associated with a security role that provides Read and Append privileges to the current entity as well as Read, Write, and Append To privileges to the other entity will be able to relate records using this relationship.

Note: Microsoft Dynamics CRM Online 3.0 provided a N:N Relationship between the Opportunity and Competitor entities. N:N relationships in Microsoft Dynamics CRM Online Microsoft Dynamics CRM 4.0 work the same way.

Self-Referential Relationships

Microsoft Dynamics CRM Online Microsoft Dynamics CRM 4.0 introduces the ability to define self-referential relationships.

Both hierarchical relationships and N:N relationships can be self-referential. This means that an entity can have a relationship with itself. This permits records to be directly associated with other records of the same type. For example, opportunities can be linked to related opportunities.

The only limitation to self-referential relationships is that records cannot be related to themselves in a parental relationship. This would create a circular reference.

Related Topics

Customization Privileges

Customizing Entities

Customization Capabilities

Did you find the information that you need?
Yes      No 
If not, what information do you need? (optional)

© 2009 Microsoft Corporation. All rights reserved.