Monday, April 23, 2012

Delete a Relationship Between Entity Types in Microsoft Dynamics CRM 2011 Using VB.NET

This illustration shows how to delete an existing relationship between two entities in Microsoft Dynamics CRM 2011 in code in VB.NET  using the DeleteRelationshipRequest.  

Ok, here is what the code look like!
In VB.NET:

Dim req As New DeleteRelationshipRequest()
req.Name = "new_contact_account"
Dim resp As DeleteRelationshipResponse = DirectCast(slos.Execute(req), DeleteRelationshipResponse)



I hope this helps!

-

No comments:

Post a Comment