我有一个名为的实体样本。里面说我有很多字段,其中一个是ProjectLocation下拉列表。在实体中设置查找属性
现在我使用此代码通过WCF在CRM中插入样本的新实例。
Entity sample = new Entity("new_sample");
sample.Attributes["name"]= "Ahmed";
这个工作,但是当我要进入ProjectLocation我没有任何想法,应该如何来实现。
这不起作用。
Entity projectLoc = service.Retrieve("projectlocation", (new guid here), columnset)
sample.Attributes["new_projectlocation1"] = projectLoc
可以做些什么?