在 MS CRM 4.0 中创建或更新自定义实体
对于一项要求,我被要求将信息导出到在 MS CRM 4.0 中创建的自定义实体中。 我正在尝试以编程方式执行此操作,但尚未找到实际完成此操作的单个代码。 我编写了代码来检查实体中是否存在某个字段的特定值,但创建一个新实体对我来说似乎有点困惑。 对此的任何帮助将不胜感激。
For a requirement i was asked to export information into a custom entity that was created in MS CRM 4.0. I am trying to do this programmatically and I have not found a single code that actually accomplishes this. I wrote code to check if a certain value for a field exists in the entity but creating a new entity seems to be a little bit of puzzle for me. Any help on this would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
要从代码创建自定义实体,您需要使用 MetadataService Web 服务。 “CreateEntity”方法用于创建自定义实体。
v4.0 版 CRM SDK 向您展示了如何:
CreateEntity 消息 (MetadataService)
To create a custom entity from code, you need to use the MetadataService web service. The 'CreateEntity' method is used to create custom entities.
The CRM SDK for v4.0 shows you how:
CreateEntity Message (MetadataService)
这是我在MS CRM 3.0中有类似需求时的经验。 我开始使用CRM sdk导入数据,但发现这并不容易。
然后我最终使用了CRM 的 Scribe 适配器。 它不是免费的,但可以轻松解决您导入自定义实体的问题。 将发布一些相关链接。 需要浏览一些旧书签。
不确定 CRM 4.0 是否存在开箱即用的此功能。
This is my experience when I had a similar requirement in MS CRM 3.0. I started using the CRM sdk to import data but found it was not easy.
Then I ended up using Scribe adapter for CRM. It is not free but will easily solve your problem for importing to custom entities. Will post some links on that. need to go through some old bookmarks.
Not sure if this feature exist out of the box for CRM 4.0.
我一直在使用的一款产品是 Simego 的 DataSync(它有一个支持 MS CRM 4.0 的插件) http://www.simego.net/products/Data-Synchronization-Studio
One product i have been using is DataSync from Simego (It has a plugin that supports MS CRM 4.0) http://www.simego.net/products/Data-Synchronisation-Studio
感谢您的链接。 我熟悉 Scribe 适配器。 问题是客户希望在 MS CRM 4.0 中使用此导入向导。 无论如何,我找到了解决方案的答案 在这里。 谢谢你的回复:)。
Thanks for the link. I was familiar with the Scribe Adapater. Catch is client wanted this import wizard inside MS CRM 4.0. In anycase i found the answer to my solution here. Thanks for you reply :).
在 MSCRM 4.0 中使用从 CSV 导入功能有什么问题? 它满足自定义实体(3.0 没有)并允许良好的映射功能和保存映射?
Whats wrong with using the import from CSV function within MSCRM 4.0? It caters for custom entities (3.0 didn't) and allows good mapping functions and saving of the mappings?