Hi
I'm trying to resolve all old cases between two dates,
I tried several online functions that resolve the cases but none with me is working.
Any help please?
Thank you
*This post is locked for comments
Hello,
You can do following:
1. Create on-demand workflow for case entity that will change state of case to resolved.
2. Run this in-demand workflow against cases you need to resolve.
If it is just fetchxml then you can do a retrieve and then loop through the GUID and close the cases.
foreach(Guid caseGuid in CaseGuidList) { Entity caseResolution = new Entity("incidentresolution"); caseResolution.Attributes.Add("incidentid", new EntityReference("incident", caseGuid))); caseResolution.Attributes.Add("subject", "Reason for resolution."); CloseIncidentRequest req = new CloseIncidentRequest(); req.IncidentResolution = caseResolution; req.RequestName = "CloseIncident"; OptionSetValue o = new OptionSetValue(5); req.Status = o; CloseIncidentResponse resp = (CloseIncidentResponse)service.Execute(req); }
So you aren't able to resolve them manually? Did I understand you correctly?
Hello Lema,
No I can resolve them manually but the old opened cases are too many, so we need to resolve only the old cases using c#.
Thank youuu prateek it worked
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Community Member 2
HR-09070029-0 2
UllrSki 2