UI Action not working in CSM/FSM configurable workspace

Abhijit Das7
Tera Expert

Hi Everyone,

 

I have created a below UI Action for configurable workspace.  Below UI Action is working in other instances but not working one particular instance. I placed alert in UI Action code and gs.info in Script Include. Alert is coming but I cannot see gs.info in logs. 

 

 

UI Action 

pr.png

Workspace Client Script

function mytask() {

    var ar = new GlideAjax('name of script include');
   alert("Enetered UI Action");
    ar.addParam('sysparm_name', 'setDetails');
    ar.addParam('sysparm_sysID', g_form.getUniqueValue());
    ar.addParam('sysparm_table', "wm_task");
    ar.addParam('sysparm_contact_sysID', g_form.getValue('caller'));
    
    ar.getXMLAnswer(setURLCallback);

    function setURLCallback(response) {
        //var newwin= top.window.open(response, '_blank');
        var newWin = top.window.open(response, '_blank', 'noopener');
        newWin.opener = null;

    }

}

 

Please guide me with above issue. 

 

Thanks in advance

1 REPLY 1

Neeraj31
Mega Sage

Hi @Abhijit Das7 ,

 

Check if your Script Include accessible from All Application Scopes ?

 

If this helps, mark it as Helpful & Correct!