I need some help over how to update and implement this code on closing an incident that is on Microsoft documentation.
The code for closing case can be found on https://docs.microsoft.com/en-us/dotnet/api/microsoft.crm.sdk.messages.closeincidentrequest?view=dynamics-general-ce-9
I am creating an incident using this code -
private IOrganizationService m_OrgServ = null;
m_OrgServ = DynamicsAccessUtils.getDynamicsCon();
public void Case_entity()
{
Entity incident = new Entity("incident");
incident.Attributes["ibm_securityclassificationselector"] = new EntityReference("ibm_securityclassification", new Guid("00E0E87CA93AE911AA0B067E3E789E92"));
incident.Attributes["ibm_region_picker"] = new EntityReference("ibm_region", new Guid("27DB6B08EE7FEA11AA7E067E3E789E92"));
incident.Attributes.Add("ibm_callername", "hh");
incident.Attributes.Add("ibm_callerphone", "12345");
incident.Attributes["customerid"] = new EntityReference("account", new Guid("E6E9E0652CFEE811A9E9067E3E789E92"));
Guid caseId = m_OrgServ.Create(incident);
}
In the Dynamics UI , you click a checkbox close case (close incident)
There is a mandatory optionset field , from which I want to choose the 3/4 option (Name of option - No Action)
There is a mandatory textbox , to fill in justification
so can I said what I choose for these close incident fields over API and be able to close the case after I have created it, after that create incident code I have already?