Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Change Case(incident) statecode in crm 2016 online

$
0
0

I am aware of the early bound solution:

var incidentResolution = new IncidentResolution
                            {
                                Subject = caseproblemsolutionText,
                                IncidentId = new EntityReference(Incident.EntityLogicalName, incident.Attributes["incidentid"])
                            };
 
// Close the incident with the resolution.
var closeIncidentRequest = new CloseIncidentRequest
{
    IncidentResolution = incidentResolution,
    Status = new OptionSetValue((int) incident_statuscode.ProblemSolved)
};

service.Execute(closeIncidentRequest);

Is there any other way of changing statecode of incident using plugin without needing to generate IncidentResolution class using CrmSvcUtil.exe tool.


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images