简体   繁体   English

Microsoft Dynamics CRM C#插件以使用Jquery和Ajax

[英]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.

相关问题 c#-动态CRM在线插件-使用字段值填充相关实体的属性 - c# - dynamics crm online plugin - use field value to populate attribute of related entity Dynamics CRM C# 插件 - 第一次使用 API - Dynamics CRM C# Plugin - First time with API 在Dynamics CRM插件中使用C#创建PDF的步骤是什么 - What are the steps to create a PDF using C# in a Dynamics CRM plugin 检索 N:N 关系 Dynamics CRM/Dataverse C# 插件 - Retrieve N:N relationship Dynamics CRM/Dataverse C# Plugin C#插件中的日期在Dynamics CRM中相差一天 - Dates in C# plugin differ by one day in Dynamics CRM 在Dynamics CRM C#插件中检索查找字段的显示值 - Retrieving display value of lookup field in Dynamics CRM C# plugin Dynamics CRM 2016 c#使用尚不存在的实体的ID - Dynamics CRM 2016 c# use id of not yet existing entity How to Create Case in Microsoft Dynamics CRM 2016 (Version 8) using webservices or REST API in JAVA or C#? - How to Create Case in Microsoft Dynamics CRM 2016 (Version 8) using webservices or REST API in JAVA or C#? Microsoft Dynamics 365 CRM 身份验证的示例代码,然后重定向到 C# 控制台应用程序 - sample code for Microsoft Dynamics 365 CRM authentication and then redirect to C# console application 通过代码(C#)使用Microsoft Dynamics CRM 2011(IFD)对用户进行身份验证 - Authenticate users with Microsoft Dynamics CRM 2011 (IFD) through code (C#)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM