Thursday, May 17, 2012

Retrieve Metadata for a Relationship in Microsoft Dynamics CRM 2011 Using VB.NET

This illustration shows how to retrieve metadata for a relationship in Microsoft Dynamics CRM 2011 in code using VB.NET.   This example will be given in SOAP (JScript) and in C# (.NET).

Ok, here is what the code look like!

Dim req As New RetrieveRelationshipRequest()
req.Name = "new_contact_account_partner_relationship"
Dim resp As RetrieveRelationshipResponse = DirectCast(service.Execute(req), RetrieveRelationshipResponse)

Thats all there is to it!

I hope this helps!

No comments:

Post a Comment