//lookup
RecordEntity["new_lead"] = new EntityReference(entity.LogicalName, entity.Id);
获取时间 DateTime bg1 = Convert.ToDateTime(m["new_begintime"]).AddHours(8);
赋值时间 DateTime nowtime=DateTime.Now;
m["new_begintime"]=nowtime
Picklist 后台取值
Int i= (oppentity["new_listenfinal"] as OptionSetValue).Value ;
picklist赋值
RecordEntity["new_interactiveplatform"] = new OptionSetValue(100000004);
两个选项取值
(bool)(Entity[“attributename”])==false;
两个选项赋值
question["new_isornoappoint"] = true;
货币取值
decimal price = Convert.ToDecimal(0);
price = ((Money)entity["new_shareprice"]).Value;
货币赋值
entercontract["new_ftmoney"] = new Money(((Money)entercontract["new_ftmoney"]).Value+price);