Dynamics CRM Plugin 表单停用

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);

猜你喜欢

转载自blog.csdn.net/u012664198/article/details/82878383