How can we send Configurable Workspace URLs in notifications?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2024 01:25 AM
The URLs generated in notification emails take you to the target record in Core UI.
We're moving our users to SOW and CSM/FSM Configurable Workspaces and these email notifications are undermining our efforts to get users away from Core UI.
The notification templates call Email Scripts that use the getLink() method on the current record to get the URL.
How can we change the URL so that it directs our users to the configurable workspace of our choice?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2024 01:33 AM - edited 02-11-2024 01:33 AM
Hi @alrescate ,
There could be a better way or an OOTB API to get the URL, but you can hardcode the path to the workspace, something like below:
return gs.getProperty('glide.servlet.uri') + "/now/sow/record/" + recordTable + "/" + recordSysId;
Hope it helps!
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2024 01:22 AM
Hi James,
Linking the user to a record view is straightforward since the URL contains the table name and record sys id.
Do you know a good way to generate the URL that can link the user to a list view in the workspace?
The list view URL seems to be less direct with some IDs that I am not sure where it comes from - something like this: instance.service-now.com/now/cwf/agent/list/params/list-id/060a4b3a53b81010d4f9ddeeff7b129a/tiny-id/pSw37e8v2fCb8IkWlRZDYWy4LPuCTLCc
I like to be able to craft a URL that can link users to a workspace list just as easily as how a classic list URL can be crafted with query conditions.
Regards,
Wei
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2024 04:06 AM - edited 02-11-2024 04:06 AM
Hi @alrescate ,
Please try below once:
Please mark helpful & correct answer if worthy for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2024 07:26 AM
Did you get a chance to look at -https://www.servicenow.com/community/hrsd-forum/customize-agent-workspace-notifications/m-p/1315313
if my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,
CB