Wednesday, March 28, 2012

Check if an Entity can Participate in Many-To-Many Relationships in Microsoft Dynamics CRM 2011 Using VB.NET

This illustration will show you how to check if an entity can participate in many-to-many (N:N) relationships in Microsoft Dynamics CRM 2011 using VB.NET.

Ok, here is what the code looks like once your service is instantiated!


Dim req As New CanManyToManyRequest
req.EntityName = "account"
Dim resp As CanManyToManyResponse = DirectCast(service.Execute(req), CanManyToManyResponse)

Thats all there is to it!

No comments:

Post a Comment