Tuesday, March 27, 2012

Check if an Entity can be the Referencing (Many) 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 referencing (many) 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 CanBeReferencingRequest
req.EntityName = "account"
Dim resp As CanBeReferencingResponse = DirectCast(service.Execute(req), CanBeReferencingResponse)


Thats all there is to it!
-

No comments:

Post a Comment