Change to SetStateRequest state = new SetStateRequest(); // Set the Request Object's Properties state.State = new OptionSetValue(1); //change this to the complete status state.Status = new OptionSetValue(100000004); // Point the Request to the entity whose state is being changed state.EntityMoniker = new EntityReference(entity_helpdesk.EntityLogicalName, entity_helpdesk.Id); // Execute the Request SetStateResponse stateSet = (SetStateResponse)_serviceProxy.Execute(state); Hope this helps. Thanks.
↧