简体   繁体   中英

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.

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. So how can I pass the values from web to 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.

Please let me know..

Create a new action call where the action is RunXrmCommand . The Hosted Control should be the page that is hosting your CRM Case screen. In the "Data" section of the action call, you can simply inject your USD context variable right into the 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. This tutorial provides a good outline of it: https://neilparkhurst.com/2017/04/07/usd-execute-actions-from-javascript/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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