Friday, December 30, 2011

Using CreateRequest to Create an Entity in Microsoft Dynamics CRM 2011 Using VB .NET

This illustration shows how to use CreateRequest to create an entity in Microsoft Dynamics CRM 2011 with VB.NET

Ok, here is what the code looks like!


Dim create As New CreateRequest()
Dim tstAccount As New Account()

'set attributes here
tstAccount.Name = "test account in code"
tstAccount.Address1_City = "Richfield"

create.Target = tstAccount

Thats all there is to it!

1 comment:

  1. Can you please tell how to add "SuppressDuplicateDetection" in createrequest()( in your example.