Поделиться через


Entity relationship eligibility

 

Applies To: Dynamics CRM 2015

Before you create an entity relationship you should confirm whether the entity is eligible to participate in the relationship. The following table lists the messages that you can use to determine whether entities can participate in entity relationships.

Message

Description

CanBeReferencedRequest

Checks whether the specified entity can be the primary entity (one) in a one-to-many relationship.

CanBeReferencingRequest

Checks whether the specified entity can be the referencing entity (many) in a one-to-many relationship.

CanManyToManyRequest

Checks whether the entity can participate in a many-to-many relationship.

GetValidManyToManyRequest

Returns the set of entities that can participate in a many-to-many relationship.

GetValidReferencedEntitiesRequest

Returns the set of entities that are valid as the primary entity (one) from the specified entity in a one-to-many relationship.

GetValidReferencingEntitiesRequest

Returns the set of entities that are valid as the related entity (many) to the specified entity in a one-to-many relationship.

See Also

Customize entity relationship metadata
Extend the metadata model
Customize entity relationship metadata
Entity relationship metadata messages
Entity relationship behavior
d10c5399-7e79-413c-9b8c-9e4f402fc167#BKMK_Create1NEntityRelationship
d10c5399-7e79-413c-9b8c-9e4f402fc167#BKMK_CreateNNEntityRelationship

© 2016 Microsoft. All rights reserved. Copyright