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
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
Thank youuu prateek it worked
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#.
Hello,
So you aren't able to resolve them manually? Did I understand you correctly?
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); }
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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156