Hi, I am trying update a record from a entity collection, but I got this error "entitystate must be set to null, created (for create message) or changed (for update message)", here is my code
foreach (Entity c in Result) { EntityReference ID = GetByID(c.Attributes[courseresult.Fields.serv_name].ToString()); if (ID != null) { c.Attributes.Add(result.Fields.serv_contact, contactID); _orgService.Update(c); counter++; } }
*This post is locked for comments