statecode的值为1,statuscode的值为2。
Entity ent_update = new Entity() { Id = "Id", LogicalName = "LogicalName" };
ent_update["statecode"] = new OptionSetValue(1);
ent_update["statuscode"] = new OptionSetValue(2);
plugin.SysService.Update(ent_update);
Entity ent_update = new Entity() { Id = "Id", LogicalName = "LogicalName" };
ent_update["statecode"] = new OptionSetValue(1);
ent_update["statuscode"] = new OptionSetValue(2);
plugin.SysService.Update(ent_update);