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
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!
-
-
Can you please tell how to add "SuppressDuplicateDetection" in createrequest()(vb.net) in your example.
ReplyDelete