web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

SetStateRequest message request is deprecated BUT how to re-open a CASE?

(0) ShareShare
ReportReport
Posted on by 423

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)
  • Rawish Kumar Profile Picture
    13,758 on at

    did you try to use update request class ?  docs.microsoft.com/.../gg327638%28v%3dcrm.8%29  

  • Suggested answer
    bernhards Profile Picture
    423 on at

    The cause was a another plugin that got triggered.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
RichardM Profile Picture

RichardM 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans