Coming from that https://docs.microsoft.com/en-us/dotnet/api/microsoft.crm.sdk.messages.setstaterequest?view=dynamics-general-ce-9 i tried to re-open a closed case with Update:
Entity incidentMakeWriteable = new Entity("incident");
incidentMakeWriteable.Id = incidentToUpdate.Id;
incidentMakeWriteable["statecode"] = new OptionSetValue(0);
incidentMakeWriteable["statuscode"] = new OptionSetValue(1);
service.Update(incidentMakeWriteable); // Will throw an exception here
service.Update(incidentToUpdate);
incidentMakeWriteable["statecode"] = new OptionSetValue(stateCode);
incidentMakeWriteable["statuscode"] = new OptionSetValue(statusCode);
Exception: This case has already been resolved. Close and reopen the case record to see the updates.
Any ideas?
*This post is locked for comments
I have the same question (0)