OrganizationServiceContextExtensions.CloseIncident Method (OrganizationServiceContext, Entity, OptionSetValue)


Applies To: Dynamics CRM 2015

Closes an incident (case). (Developer Extensions)

Namespace:   Microsoft.Xrm.Client.Messages
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)


public static void CloseIncident(
    this OrganizationServiceContext context,
    Entity incidentResolution,
    OptionSetValue status
static void CloseIncident(
    OrganizationServiceContext^ context,
    Entity^ incidentResolution,
    OptionSetValue^ status
static member CloseIncident : 
        context:OrganizationServiceContext *
        incidentResolution:Entity *
        status:OptionSetValue -> unit
Public Shared Sub CloseIncident (
    context As OrganizationServiceContext,
    incidentResolution As Entity,
    status As OptionSetValue


  • incidentResolution
    Type: Microsoft.Xrm.Sdk.Entity

    The incident resolution (case resolution) that is associated with the incident (case) to be closed. Required.


This is a method wrapper for the CloseIncidentRequest and CloseIncidentResponse classes. See the documentation in the Request class for more information about this message.

See Also

CloseIncident Overload
OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client.Messages Namespace

Return to top

© 2017 Microsoft. All rights reserved. Copyright