12. Oktober 2018 14:56
Dictionary<string, CrmDataTypeWrapper> CRMContact1 = new Dictionary<string, CrmDataTypeWrapper>();
CRMContact1.Add("new_picklist", new CrmDataTypeWrapper(858870001, CrmFieldType.Picklist));
CRMContact1.Add("emailaddress1", new CrmDataTypeWrapper("wwweeerrr@aol.com", CrmFieldType.String));
var cGuid = service.CreateNewRecord("contact", CRMContact1);
CRMContact1 = null;
CRMContact1 = new Dictionary<string, CrmDataTypeWrapper>();
CRMContact1.Add("new_picklist", new CrmDataTypeWrapper( null, CrmFieldType.Picklist ) );
service.UpdateEntity("contact", "contactid", cGuid, CRMContact1);