我有一個名爲的實體樣本。裏面說我有很多字段,其中一個是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
可以做些什麼?