Hi Everyone,
I want to close an incident from c# code, I am using the below mention code. but I am getting following error :
The name 'incident_statuscode' does not exist in the current context.
SetStateRequest request = new SetStateRequest();
request.State = new OptionSetValue((int)IncidentState.Resolved);
request.Status =new OptionSetValue((int)incident_statuscode.Resolved;
request.Status = new OptionSetValue((int)Incident.OptionSets.StatusCode.ProblemSolved);
request.EntityMoniker = SRItemReference;
SetStateResponse response = (SetStateResponse)StaticXrmService.Proxy.Execute(request);
*This post is locked for comments