📜  使用动态 CRM 365 将值设置为控制台应用程序中的查找字段 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:18.260000             🧑  作者: Mango

代码示例2
Account acc = new Account();
acc.Attributes["name"] = "Ram"; // this values got inserted
acc.Attributes["age"] = "22"; // this values got inserted
acc.Attributes["lookupfieldid"] = new EntityReference("contact", contactId); // if lookupfieldid is pointing to contact entityservice.Create(acc); // to create account