Monday, March 26, 2012

Check if an Entity can be the Primary Entity in a One-To-Many Relationship in Microsoft Dynamics CRM 2011 Using VB.NET

This illustration will show you how to check if an entity can be the primary entity in a one-to-one relationship in Microsoft Dynamics CRM 2011 using VB.NET.

Ok, here is what the code looks like!

In VB.NET

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


Thats all there is to it!
-

No comments:

Post a Comment