Skip to content

Latest commit

 

History

History
47 lines (40 loc) · 3.53 KB

entity-relationship-eligibility.md

File metadata and controls

47 lines (40 loc) · 3.53 KB
title description ms.custom ms.date ms.reviewer ms.suite ms.tgt_pltfrm ms.topic applies_to helpviewer_keywords ms.assetid author ms.author search.audienceType
Entity relationship eligibility (Developer Guide for Dynamics 365 Customer Engagement (on-premises)) | MicrosoftDocs
The article lists the messages that you can use to determine whether entities can participate in entity relationships
10/31/2017
pehecke
article
Dynamics 365 Customer Engagement (on-premises)
determining whether entities can participate in entity relationships, messages for
entity relationship eligibility, determining whether entities can participate in entity relationships
entities
confirming that entities can participate in entity relationships, messages for
960606ca-ff63-4b82-9fd6-2d2243a78043
JimDaly
jdaly
developer

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.
xref:Microsoft.Xrm.Sdk.Messages.CanBeReferencedRequest
CanBeReferencing
Checks whether the specified entity can be the referencing entity (many) in a one-to-many relationship.
xref:Microsoft.Xrm.Sdk.Messages.CanBeReferencingRequest
CanManyToMany
Checks whether the entity can participate in a many-to-many relationship.
xref:Microsoft.Xrm.Sdk.Messages.CanManyToManyRequest
GetValidManyToMany
Returns the set of entities that can participate in a many-to-many relationship.
xref:Microsoft.Xrm.Sdk.Messages.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.
xref:Microsoft.Xrm.Sdk.Messages.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.
xref:Microsoft.Xrm.Sdk.Messages.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

[!INCLUDEfooter-include]