1. 程式人生 > >Dyanmics CRM Plugin 修改表單狀態為啟用

Dyanmics CRM Plugin 修改表單狀態為啟用

   Entity entity_update = new Entity() { LogicalName = "", Id =id  };
   entity_update["statecode"] = new OptionSetValue(0);
   entity_update["statuscode"] = new OptionSetValue(1);
   adminservice.Update(entity_update);