Wednesday, May 9, 2012

Delete an Option Set in Microsoft Dynamics CRM 2011 Using VB.NET

This illustration shows how to delete an option set in Microsoft Dynamics CRM 2011 in code with VB.NET  using the DeleteOptionSet Request.  

Ok, here is what the code look like!

Dim req As New DeleteOptionSetRequest()
req.Name = "new_optionsettest"
Dim resp As DeleteOptionSetResponse = DirectCast(service.Execute(req), DeleteOptionSetResponse)

I hope this helps!

1 comment: