Agent Workspace Redirect URL Using UI Action not working

Satpal Singh1
Kilo Contributor

Hi All,

 

I am unable to open URL using UI Action for Agent workspace. 

I tried below options already, but didn't help.

 

1. action.setRedirectURL('http://www.mysite.com/mypage.htm');

2. window.open('http://www.mysite.com/mypage.htm');

3. g_navigation.open("'http://www.mysite.com/mypage.htm'");

 

Nothing works here, I don't know what I need to else, remember it is Scoped application and it is "ITSM Workspace" application.

 

Regards,

Satpal Singh

1 ACCEPTED SOLUTION

Bad memory, but I have actually in my book how to redirect client-side to external as well 🙂 For those who doesn't have the book, it's just like this: 

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

Who knows what else there might be in the book 😉

//Göran
Feel free to connect:
LinkedIn
Subscribe to my YouTube Channel
or look at my Book: The Witch Doctor’s Guide To ServiceNow 

View solution in original post

12 REPLIES 12

Ct111
Giga Sage

Hi ,

I think the way you are setting URL might be wrong for scoped.

Check the below link 

 

https://community.servicenow.com/community?id=community_question&sys_id=0293c765dbd8dbc01dcaf3231f96...

 

 

Mark my ANSWER as CORRECT and HELPFUL without fail if it helped your purpose.

Hi,

 

I tried for both Scoped and Global, and tried different possiblity already but it is not working.

 

Regards,

Satpal Singh

Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

Yo Satpal,

Do you try do do it server-side or client side?

//Göran
Feel free to connect:
LinkedIn
Subscribe to my YouTube Channel
or look at my Book: The Witch Doctor’s Guide To ServiceNow

Hi Goran,

 

Yes, I tried on both Server-Side and Client but no luck.

 

It is in Agent Workspace scoped application.

 

Regards,

Satpal Singh