Can we use "window" object in scripting in servicenow for redirecting users to some other places?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2017 04:13 AM
Can we use "window" object in scripting in servicenow for redirecting users to some other places?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2017 05:18 AM
Hi Shital,
window.open method will make the user redirect to specific url but this won't work in scoped app and service portal.
you can try g_navigation.openPopup(url); in scoped app and check
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2017 05:18 AM
Hi Shital,
Can you provide some details about what you are trying to do. I have a couple ideas, but would like to know more about this example before offering a suggestion. It could be done via client script or server side, it depends on what you are trying to do and when.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-16-2018 04:05 PM
I am looking to do the same thing.
Here is what I am looking for. I have loaded data into a custom table, generated based on events passed into the system. There are several complex graphics that the user needs to view (Power vector diagrams). I tried using the data to generate a ServiceNow report but was unsuccessful. However, there is a URL that will accept several paramaters (part of the stored data) and the graphics will be displayed.
Not sure of my best options here, it would be best if the window was separate from servicenow, like a popup.