Change the Status using SetStateRequest in c# mscrm
SetStateRequest state = new SetStateRequest(); state.EntityMoniker = new EntityReference(context.PrimaryEntityName, context.PrimaryEntityId); state.State = new OptionSetValue(0);//(0);//0=active state.Status = new OptionSetValue(StatusCode);//(621260000);//=cancelled;//(1)=active ...