Hi Team!
I need to add a button on detail_cr, this button should open a new window with a specific URL followed by the case number, name and email of the requester. I can add the button, as well as the reference to a new window with the case number, but I cannot add the name or email of the requester.
This is the button
<PDM_MACRO name=button Caption="Remote" Func="openWindow()" hotkey_name="btnRemote" ID="btnRemote">
And this is the JS function openWindow().
function openWindow()
{
var URL = "https://MyServer:Port/#/redirectremote?ticket=";
URL = URL+$args.ref_num+'&';
URL = URL+'emailcliente='+$args.customer.email_address;
window.open(URL);
}
My JS code don´t work with $args.customer.email_address or $args.customer.combo_name. Any idea?
Thank you!