Open external website in ServiceNow

Brian Lancaster
Tera Sage

I have a UI Action that pops an external website in a new window.  Is there a way to get it to open center frame like an when you open an incident?

1 ACCEPTED SOLUTION

A basic setup would be something like this:

find_real_file.png

 

the url to display within ServiceNow platform view would be in this case: /nav_to.do?uri=/ifr.do

Important note the external site must support "https", otherwise it won't work as it wouldn't be a secure site.

Other notes:

The styling that I used is so that the iframe would stretch both width and height. Otherwise you would need to style or script so that the iframe would be wide and long enough to view the external site.

View solution in original post

16 REPLIES 16

sachin_namjoshi
Kilo Patron
Kilo Patron

Below article should help

 

https://community.servicenow.com/community?id=community_question&sys_id=893607a1db1cdbc01dcaf3231f961989

 

Regards,

Sachin

ChrisBurks
Mega Sage

First thing that you would need to consider is if the external website allows it to be iframed. 
After that then if it does then one thing you could do is create a UI page that contains an iframe element that points to the external website.
Once the UI page is complete then your url (whether it be for a module or just linking) would be constructed something similar to this:

nav_to.do?uri=/nameOfUIpage.do

or 

nav_to.do?uri=%2FnameOfUIpage.do

That was their suggestion.  How do I setup a UI to open a website in a fram.

A basic setup would be something like this:

find_real_file.png

 

the url to display within ServiceNow platform view would be in this case: /nav_to.do?uri=/ifr.do

Important note the external site must support "https", otherwise it won't work as it wouldn't be a secure site.

Other notes:

The styling that I used is so that the iframe would stretch both width and height. Otherwise you would need to style or script so that the iframe would be wide and long enough to view the external site.