Entity relationship eligibility
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 | Web API Operation | SDK Assembly |
---|---|---|
CanBeReferenced Checks whether the specified entity can be the primary entity (one) in a one-to-many relationship. |
CanBeReferenced Action | CanBeReferencedRequest |
CanBeReferencing Checks whether the specified entity can be the referencing entity (many) in a one-to-many relationship. |
CanBeReferencing Action | CanBeReferencingRequest |
CanManyToMany Checks whether the entity can participate in a many-to-many relationship. |
CanManyToMany Action | CanManyToManyRequest |
GetValidManyToMany Returns the set of entities that can participate in a many-to-many relationship. |
GetValidManyToMany Function | GetValidManyToManyRequest |
GetValidReferencedEntities Returns the set of entities that are valid as the primary entity (one) from the specified entity in a one-to-many relationship. |
GetValidReferencedEntities Function | GetValidReferencedEntitiesRequest |
GetValidReferencingEntities Returns the set of entities that are valid as the related entity (many) to the specified entity in a one-to-many relationship. |
GetValidReferencingEntities Function | GetValidReferencingEntitiesRequest |
See also
Customize Entity Relationship Metadata
Extend the Metadata Model for Dynamics 365 Customer Engagement (on-premises)
Entity Relationship Metadata
Entity Relationship Messages
Entity Relationship Behavior
Create one-to-many or many-to-one entity relationships overview
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應