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!

In VB.NET

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
service.Execute(create)


Thats all there is to it!
-

1 comment:

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

    ReplyDelete