为CRM系统中常见数据类型进行赋值(statecode)
对CRM中常见的数据类型赋值方式如下: 1、EntityReference:each.Attributes["petro_serviceisclosed"] = new EntityReference("systemuser", Guid.Parse("988F2BBD-7C83-E511-80D5-005056AD06D3"))2、optionset setStateReq.State = ne