SetStateIncidentRequest state = new SetStateIncidentRequest();
state.IncidentState = IncidentState.Resolved;
state.IncidentStatus = -1;
// Set the properties of the request object.
state.EntityId = new Guid(incidentId);
SetStateIncidentResponse stateSet =
(SetStateIncidentResponse)service.Execute(state);
Thank you
Brian
--
Matt Parks
MVP - Microsoft CRM
<brian....@ordinatech.com> wrote in message
news:1142804080....@i40g2000cwc.googlegroups.com...
Brian
--
Matt Parks
MVP - Microsoft CRM
<brian....@ordinatech.com> wrote in message
news:1142886187....@t31g2000cwb.googlegroups.com...
SetStateIncidentResolutionRequest state = new
SetStateIncidentResolutionRequest ();
state.IncidentResolutionState = IncidentResolutionState.Completed;
state.IncidentResolutionStatus = -1;
// Set the properties of the request object.
state.EntityId = new Guid(incidentId);
SetStateIncidentResponse stateSet =
(SetStateIncidentResponse)service.Execute(state);
Brian
incidentresolution mysolution = new incidentresolution();
Lookup mylookup = new Lookup();
mylookup.Value = new Guid("0C61EBF0-14C0-DA11-8E8B-0007E9790AAC"); // my
incident-id to change to resolved
mysolution.incidentid =mylookup ;
Status mystatus = new Status();
mystatus.Value = 2; //completed
mysolution.statuscode = mystatus;
IncidentResolutionStateInfo datRes =new IncidentResolutionStateInfo();
datRes.Value = IncidentResolutionState.Completed;
mysolution.statecode = datRes;
CloseIncidentRequest mycir = new CloseIncidentRequest();
mycir.IncidentResolution = mysolution;
mycir.Status = -1;
CloseIncidentResponse myresponse = (CloseIncidentResponse)service.
Execute(mycir);
jjugalde