简体   繁体   English

如何将带有自定义服务器端处理程序的功能区按钮添加到Dynamics CRM Web?

[英]How to add ribbon button with custom serverside handler to Dynamics CRM web?

We need to import to some external system group of contacts that user selected in contacts grid. 我们需要导入用户在联系人网格中选择的一些外部系统联系人组。

For now the only option I see is: get IDs if selected contacts and send it to the to external system using JavaScript. 现在,我看到的唯一选择是:获取所选联系人的ID,并使用JavaScript将其发送到外部系统。

But is it possible on ribbon button press get list of selected contact on server side? 但是有可能在功能区按钮上获取服务器端所选联系人的列表吗? We`d like to process this contacts on server and send them to external system using our C# code (in plugin, most likely)? 我们想在服务器上处理这些联系人并使用我们的C#代码将它们发送到外部系统(在插件中,最有可能)?

Yes, in a slightly longwinded way. 是的,以略微漫长的方式。 You can't call server side code directly from JavaScript. 您无法直接从JavaScript调用服务器端代码。 You can however perform an action that will call server side code. 但是,您可以执行将调用服务器端代码的操作。

For example: 例如:

  • Create a new entity - 'Contact Processor', this has a lookup to a contact. 创建一个新实体 - “联系处理器”,它可以查找联系人。
  • Place a plugin (or custom worfklow activity) on the create of a 'Contact Processor'. 在创建“联系处理器”时放置一个插件(或自定义worfklow活动)。 This uses the lookup to the contact to perform whatever logic you require, eg Sending the data to an external system. 这使用查找联系人来执行您需要的任何逻辑,例如将数据发送到外部系统。
  • You add some JavaScript to a ribbon button that when clicked creates 'Contact Processor' records, this will then trigger the server side code. 您将一些JavaScript添加到功能区按钮,单击该按钮会创建“联系处理器”记录,然后这将触发服务器端代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在ms动态CRM中的功能区中添加示例按钮 - How to add a sample Button inside Ribbon in ms dynamics CRM Dynamics CRM,功能区按钮,添加链接的子实体 - Dynamics CRM, Ribbon Button, Add linked child entity 如何在Dynamics CRM 2016中基于表单禁用功能区按钮? - How to disable ribbon button based on Form in Dynamics CRM 2016? 如何在Dynamics CRM 2015中向表单添加按钮 - How to add a button to a form in Dynamics CRM 2015 功能区按钮尺寸不正确的Dynamics CRM 2011模态Web资源(仅IE) - Dynamics CRM 2011 Modal Web Resource from Ribbon button size incorrect (IE only) Dynamics CRM自定义Web身份验证 - Dynamics CRM Custom Web Authentication 如何使用CRM中的Ribbon Workbench以特定形式添加按钮 - How to add button in particular form using Ribbon Workbench in CRM 自定义事件处理程序-Dynamics CRM在线 - Custom event handler - Dynamics crm online 无法单击 Dynamics CRM selenium java 中的功能区按钮 - unable to click on ribbon button in Dynamics CRM selenium java Dynamics CRM 365:通过功能区上的按钮下载 Word 文档模板 - Dynamics CRM 365 : Downloading a Word Document Template via a Button on the Ribbon
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM