Hi all..I have a small requirement.We have a custom button called Resolve. On Click of that case has to be Resolved. I have Written a custom code for it.
So on click of the button case is getting resolved. But the problem it is getting reflected only after form Refresh. Please give your suggestions. Below is the code i have used for resolving.
Entity caseResolution = new Entity("incidentresolution");
caseResolution["incidentid"] = new EntityReference("incident", caseId);
caseResolution["subject"] = "Case resolved!";
CloseIncidentRequest close = new CloseIncidentRequest();
close.IncidentResolution = caseResolution;
close.RequestName = "CloseIncident";
close.Status = new OptionSetValue(5);
CloseIncidentResponse closeCase = (CloseIncidentResponse)organizationService.Execute(close);
*This post is locked for comments