Assistance with Workspace Client Script for Redirecting to Report Page

MaramA
Tera Contributor

 

Hello,

I have created a button in the workspace called "Pie Chart." Now, I need to create a workspace client script to redirect to the report page in the backend (sys_report_template.do?jvar_report_id=undefined).

I wrote the following script, but it isn't working:

function onClick(g_form) {
// Define the URL for the report page
var reportUrl = 'https://dev244694.service-now.com/sys_report_template.do?sysparm_table=incident&sysparm_field=caller...';

// Redirect to the report page
window.location.href = reportUrl;
}

MaramA_0-1719911927154.png

 

 
0 REPLIES 0