Dynamics CRM saving Entity Changes - Getting Errors
问题 I'm really scratching my head with this. I'm trying to use the Dynamics CRM SDK to update an account record. No matter what I try, it's failing. Here goes. Account sampleAccount = CrmAccount.GetAccountsBySubmissionCode(crmService, "ERZZUP").Single<Account>(); sampleAccount.Name = "AMC Edited"; crmService.Update(sampleAccount); Gives the error: EntityState must be set to null, Created (for Create message) or Changed (for Update message) XrmServiceContext ctx = new XrmServiceContext(crmService)