如何使用CRM 2011 webservice和JavaScript在CRM 2011中执行FetchXML? [英] How to Execute FetchXML in CRM 2011 using a CRM 2011 webservice and JavaScript?
问题描述
我想使用 CRM 2011 SOAP Web服务和 JavaScript 在CRM 2011环境中执行FetchXML查询。
I want to execute FetchXML queries in a CRM 2011 environment using the CRM 2011 SOAP web services and JavaScript.
我发现了很多文章喜欢这个展示如何使用2011环境中仍然可用的4.0 Web服务,但我不想这样做。
I have found a number of articles like this one showing how to use the 4.0 web service that is still available in the 2011 environment, but I do not want to do this.
此链接似乎表明IOrganizationService.RetrieveMultiple可以处理FetchXML。但是,我不想为此使用托管代码。
This link seems to indicate that IOrganizationService.RetrieveMultiple can handle FetchXML. However, I do not want to use managed code for this.
我遇到过这个链接基本上显示了我想在RetrieveMultiple函数中做什么,但我希望能够传入我编写的现有FetchXML,而不是新的过滤器表达式。
I've come across this link that shows essentially what I want to do in the RetrieveMultiple function, but I want to be able to pass in existing FetchXML that I've written, not a new filter expression.
推荐答案
要使用JavaScript执行fetchxml查询,可以使用一堆框架/库:
To execute fetchxml queries with JavaScript a bunch of frameworks /libraries are available:
- XrmSvcToolkit
- XrmServiceToolkit
- CrmFetchKit.js
这些库不是手动编写代码,而是提供执行多个操作和访问结果的简单方法。但考虑到并非所有库(当前)都支持跨浏览器(Q2.2012)。
Instead of writing the code by hand these libraries provide a simple way to perform several operations and access the results. But take into account that not all libraries (currently) support cross-browser (Q2.2012).
这篇关于如何使用CRM 2011 webservice和JavaScript在CRM 2011中执行FetchXML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!