How To : Check if an Entity can Participate in Many-To-Many Relationships in C# SDK

The following code shows how you can check if an Entity can be the Primary Entity in a Many-To-Many Relationship or not.


//Create The Request
CanManyToManyRequest Request = new CanManyToManyRequest();

//Set Entity Name
Request.EntityName = "account";

CanManyToManyResponse Response = (CanManyToManyResponse)_serviceProxy.Execute(Request);

//Get The Result
var result = Response.CanManyToMany;


Leave a Reply

Your email address will not be published. Required fields are marked *