Open new window in Agent Workspace

ayanc27
Kilo Expert

Hello everyone,

I want open a new window / tab by clicking on UI Action button in Agent Workspace to open an external url. From UI 16 it is working fine but in Agent Workspace it is not opening any new tab or window. I tried below but no luck:

 

1> window.open("https://www.google.com",'_blank');

2> g_navigation.openPopup("https://www.google.com");

 

 

Any help is appreciated. Thanks in advance

 

14 REPLIES 14

AirSquire
Tera Guru

Hi Ayan,

Did you got it working? I am stuck in the same scenario.

Regards
Air

Vasanth12
ServiceNow Employee
ServiceNow Employee

Did you try declarative actions in workspace?

matthew_payton
Kilo Explorer

Hey, I'm running into the same problem exactly. if anyone has successfully gotten a UI action to pop new tab in the workspace --- *or even in the browser* I would love to take advice on it. 

Hi Matthew,

I found a solution in community itself. In the workspace client script, use below script and it will work.

var win = top.window.open('http://www.coolsite.com', '_blank');
win.focus();

Regards
Air