如何添加值以查找字段。 [英] How to add an value to look up field.?
问题描述
我有一个列表,其中添加了在Microsoft Dynamics CRM中创建帐户的所有值。
插入了每个正常字段值..(例如,名称,地址,数字) up值未插入..
i使用以下代码为查找字段添加值..但是我没有收到任何错误..
账户acc =新账户();
acc.Attributes [name] =Ram; //已插入此值
acc.Attributes [age] =22; //已插入此值
acc.Attributes [lookupfieldid] =Sampletext;
service.Create(acc); //创建帐户
如何更改我的代码以便将sampletext数据插入查找字段???????。
i have an list in which i have added all the values for creating an account in Microsoft Dynamics CRM .
Every normal fields values got inserted..(eg.name,address,number) Look up value is not inserted..
i used the the following code to add value to look-up field.. However i dont get any errors..
Account acc = new Account();
acc.Attributes["name"] = "Ram"; // this values got inserted
acc.Attributes["age"] = "22"; // this values got inserted
acc.Attributes["lookupfieldid"] = "Sampletext";
service.Create(acc); // to create account
How i need to change my code in order to insert "sampletext" data into lookup fields???????.
推荐答案
您应该下载,安装和研究与您的版本对应的Dynamics CRM SDK。
这里您可以找到一个很好的起点:
Microsoft Dynamics CRM的开发 [ ^ ]
祝你好运!
You should download, install and study toroughly the SDK for Dynamics CRM that corresponds to your version.
Here you may find a good starting point:
Development for Microsoft Dynamics CRM[^]
Good luck!
这篇关于如何添加值以查找字段。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!