Get URL in Agent Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2020 07:28 AM
Hi,
in Agent Workspace I created a Related List Action implemented as Server Script.
I wolud like to get the URL. I tried with gs.action.getGlideURI() and I recieved this string: api/now/v1/batch?api=api, but I need to recieve the URL string like this: /now/workspace/agent/record/rm_release/3b682b1bdbc2d850ceb3ef08489619aa.
How can I do that?
Thanks in advance
Maddalena
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2020 10:35 AM
In your client script for the UI Action, you can use top.location.href to get the URL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2020 06:29 AM
Hi,
top.location.href will only work for client script. Could anyone have idea what we can use in Server side code to get it?
thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2022 04:56 AM
Did you ever find an answer to this?
ServiceNow Community Rising Star 2022/2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2023 05:17 AM
Hi Jagjeet,
did you find a way to get the agent workspace URL from server script ?
Thanks
Agathe