[英]Microsoft Dynamics CRM C# Plugin to use Jquery and Ajax
Below image shows my Jquery with Ajax code 下图显示了带有Ajax代码的Jquery
JQuery and Ajax Code jQuery和Ajax代码
Where in the code I'm fetching field values and POSTing it to the URL in JSON format. 我在代码中的什么地方获取字段值并将其以JSON格式发布到URL。
I want to achieve the same thing in C# plugin fetching the values from fields i can use query Expression but i need to use AJAX in the C# code how I'll achieve this? 我想在C#插件中实现相同的目的,即从字段中获取值,我可以使用查询表达式,但是我需要在C#代码中使用AJAX,我将如何实现这一点?
Any help would be Appreciable... 任何帮助将是可观的...
AJAX - Asynchronous JavaScript And XML - useful to make Async calls to server side from client side using js/jQuery & xml. AJAX-异步JavaScript和XML-有助于使用js / jQuery和xml从客户端对服务器端进行异步调用。
Plugin - server side code for extending logic in CRM platform event execution pipeline (ex.create/update). 插件-服务器端代码,用于扩展CRM平台事件执行管道中的逻辑(例如,创建/更新)。 You can make a plugin to run as Asynchronous while registering the steps in Plugin registration tool.
在插件注册工具中注册步骤时,可以使插件以异步方式运行。 You can do
service.RetrieveMultiple
to search & service.Update
to set the value in Post-operation plugins. 您可以进行
service.RetrieveMultiple
搜索和service.Update
来设置Post-operation插件中的值。 In fact pre-create or pre-update Plugins can set the field values by intercepting the pipeline & even before DB transaction, but this is always synchronous. 实际上,预创建或预更新插件可以通过拦截管道(甚至在进行DB事务之前)来设置字段值,但这始终是同步的。
But in your code, you are searching/retrieving customerid, customercode using user entry in shortname, address & filling up. 但是在您的代码中,您正在使用短名称,地址和填写用户输入来搜索/检索客户ID,客户代码。 This can be done in either way - client/server side.
这可以通过两种方式完成-客户端/服务器端。
QueryExpression or FetchXML are two CRM native ways to query the data. QueryExpression或FetchXML是两种CRM本地查询数据的方式。 Broader topic, hence you can search for lot of samples in combination online.
主题更广泛,因此您可以在线搜索大量样本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.