I have a N to 1 or 1 to N application. But the value has been not written into the physical field .
Entity location1 = new Entity("new_testuser"); location1["new_name"] = "loueas-" + DateTime.Now.ToString("yyyyMMddhhmm"); ConditionExpression condition1 = new ConditionExpression(); condition1.AttributeName = "fullname"; condition1.Operator = ConditionOperator.Like; condition1.Values.AddRange(new object[] { "ru%" }); //過濾不是在條件內的項目 FilterExpression filter1 = FilterExpression(); filter1.Conditions.Add(condition1); //查詢出資料表達 QueryExpression qeLocations = new QueryExpression("systemuser"); qeLocations.ColumnSet = new ColumnSet(true); qeLocations.AddOrder("systemuserid", OrderType.Descending); qeLocations.Criteria.AddFilter(filter1); var queryAns = tempOrganization.RetrieveMultiple(qeLocations); //textBox1.Text += queryAns.Entities.Count + Environment.NewLine; Entity room1 = new Entity("systemuser"); //位址名稱 foreach (var i in queryAns.Entities) { room1["fullname"] = i; EntityCollection roomCollection = new EntityCollection(); roomCollection.EntityName = "systemuser"; // roomCollection.Entities.Add(room1); Relationship roomRelationship1 = new Relationship("new_systemuser_new_testuser_sales"); location1.RelatedEntities[roomRelationship1] = roomCollection; } Error message:An unexpected error occurred.
Where can I find to be modified or new program?
Hi,
this is the german CRM Forum. You can ask your englich question here: http://social.microsoft.com/Forums/en-US/crm/threads