Folks, i'm stuck trying to set a picklist value to NULL using CRMServiceClient on a WPF form. Updating a picklist to another value works great, i'm just having trouble setting it to null or empty.
If i set it to something other than NULL, meaning a value that's not one in a picklist, then it displays empty null string correctly on the CRM form. But in the DB it's populated with that 'dummy' value which would sort of cause some confusion.
Here is what i have so far but it's throwing an error when i pass null in the wrapper. It works if i put "-1". Is this the value to use to reset the pick list to an unassigned value?
CrmServiceClient svcClient = ctrl.CrmConnectionMgr.CrmSvc;
Dictionary<string, CrmDataTypeWrapper> inData = new Dictionary<string, CrmDataTypeWrapper>();
inData.Add("new_srq",new CrmDataTypeWrapper(null, CrmFieldType.Picklist));
bool success = svcClient.UpdateEntity("account", "accountid", new Guid(guid), inData);
*This post is locked for comments
I have the same question (0)