简体   繁体   English

将参数从 Web 应用程序传递到 Unified Service Desk 内的 CRM 案例屏幕

[英]Pass parameters from Web Application to CRM Case screen inside Unified Service Desk

I need to pass parameter from a web application that is opened inside a USD Session to CRM Case Screen that is also opened inside same USD Session.我需要将参数从在美元会话中打开的 Web 应用程序传递到也在同一美元会话中打开的 CRM 案例屏幕。

Is there any possibility to do that?有没有可能做到这一点? I know how to pass from CRM to web.. But I do not have rights to modify the web application.我知道如何从 CRM 传递到 Web.. 但我无权修改 Web 应用程序。 So how can I pass the values from web to crm?那么如何将值从 web 传递到 crm?

I just need to put the value from web inside Unified Service Desk Data parameters from there I can have the values inside my CRM page.我只需要将 Web 中的值放入 Unified Service Desk Data 参数中,然后我就可以在 CRM 页面中使用这些值。

Please let me know..请告诉我..

Create a new action call where the action is RunXrmCommand .创建一个新的动作调用,其中动作是RunXrmCommand The Hosted Control should be the page that is hosting your CRM Case screen.托管控件应该是托管您的 CRM 案例屏幕的页面。 In the "Data" section of the action call, you can simply inject your USD context variable right into the javascript.在操作调用的“数据”部分,您可以简单地将美元上下文变量直接注入 javascript。 The data section might look something like this for example:例如,数据部分可能如下所示:

function UpdateCaseFields() {
    Xrm.Page.getAttribute("nwn_name").setValue("[[$Context.CaseName]+]");
}

If you are trying to go the other way, you have to fire an event from the javascript.如果您想反其道而行之,则必须从 javascript 中触发一个事件。 This tutorial provides a good outline of it: https://neilparkhurst.com/2017/04/07/usd-execute-actions-from-javascript/本教程提供了一个很好的概述: https : //neilparkhurst.com/2017/04/07/usd-execute-actions-from-javascript/

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM