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