OrganizationServiceContextExtensions.SetState Method (OrganizationServiceContext, EntityReference, OptionSetValue, OptionSetValue)


Applies To: Dynamics CRM 2015

Sets the state of a record. (Developer Extensions)

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


public static void SetState(
    this OrganizationServiceContext context,
    EntityReference entityMoniker,
    OptionSetValue state,
    OptionSetValue status
static void SetState(
    OrganizationServiceContext^ context,
    EntityReference^ entityMoniker,
    OptionSetValue^ state,
    OptionSetValue^ status
static member SetState : 
        context:OrganizationServiceContext *
        entityMoniker:EntityReference *
        state:OptionSetValue *
        status:OptionSetValue -> unit
Public Shared Sub SetState (
    context As OrganizationServiceContext,
    entityMoniker As EntityReference,
    state As OptionSetValue,
    status As OptionSetValue



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

See Also

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

Return to top

© 2017 Microsoft. All rights reserved. Copyright