CrmServiceClient.CloseIncident(Guid, Dictionary<String,CrmDataTypeWrapper>, Int32, Guid) CrmServiceClient.CloseIncident(Guid, Dictionary<String,CrmDataTypeWrapper>, Int32, Guid) CrmServiceClient.CloseIncident(Guid, Dictionary<String,CrmDataTypeWrapper>, Int32, Guid) Method

Definition

Closes an Incident request in CRM, this special handling is necessary to support CRM Built In Object.

public Guid CloseIncident (Guid incidentId, System.Collections.Generic.Dictionary<string,Microsoft.Xrm.Tooling.Connector.CrmDataTypeWrapper> fieldList, int incidentStatusCode = 5, Guid batchId = null);
member this.CloseIncident : Guid * System.Collections.Generic.Dictionary<string, Microsoft.Xrm.Tooling.Connector.CrmDataTypeWrapper> * int * Guid -> Guid
Public Function CloseIncident (incidentId As Guid, fieldList As Dictionary(Of String, CrmDataTypeWrapper), Optional incidentStatusCode As Integer = 5, Optional batchId As Guid = null) As Guid

Parameters

incidentId
Guid Guid Guid

ID of the CRM Incident to close

fieldList
Dictionary<String,CrmDataTypeWrapper>

List of data items to add to the request, By default, subject is required.

incidentStatusCode
Int32 Int32 Int32

Status code to close the incident with, defaults to resolved

batchId
Guid Guid Guid

Optional: if set to a valid GUID, generated by the Create Batch Request Method, will assigned the request to the batch for later execution, on fail, runs the request immediately

Returns

Guid of the Activity.

Remarks

Applies to