I want link on notificarion email for directly go incident/request page on agent workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2022 04:00 AM
when user got notification when SLA is Breached as you can see below
when user click on that Link he is goes to below agent workspace page
instead of that page i want to go deirectly on that incident form like below Screen Shot ...Above is TASK SLA
Below is notification email script
please guide me how can i do this
- Labels:
-
Agent Workspace

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2022 04:23 AM
Hello Ganesh,
Please see below to generate a link a record in agent workspace in email notifications. DOCS LINK
The ${URI}
and ${URI_REF}
variables don't apply to records in Workspace. To link to a record in Workspace, create a mail script and reference it in your notification. For more information on using mail scripts, see JavaScript in emails.
https://<instance_name>/now/workspace/<workspace_name>/record/<table_name>/<sys_id>
// Dynamically construct an Agent Workspace URL and insert a link in the notification var agentURL = '<a href="' + gs.getProperty('glide.servlet.uri') + '/now/workspace/agent/record/'+ current.getTableName() + '/' + current.sys_id + '">' + current.number + '</a>'; template.print(agentURL + "<br />");
Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg
Regards
Sulabh Garg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2022 04:29 AM
Hi Sulabh,
Thank you for your reply but I already apply above script still it is not working
Thanks,
ganesh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2022 04:40 AM
Please apply logs in your mail script and see what url is generated under variable "agentURL" and see what is going wrong.
Also check the property value on your instance 'glide.servlet.uri'.
Hope it helps.
Regards
Sulabh Garg