URL in an Email notification to portal view of a HR Task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2021 02:30 AM
Hi
I want to add a link in an email notification for a HR Task that takes the user to the task in the HR Portal. I have found the ${URI} field but when you click on this it just takes you to the back end view. We don't want our colleagues using back end views we always direct them to the portal.
For standard cases we have had a email script built but I was wondering if there was a way we could do this without having to code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2021 02:37 AM
Hi,
I assume your notification is on HR Task table
you can form the URL directly like this inside the email body by clicking the link icon
Give details as this
esc - portal
/esc?id=ticket&table=sn_hr_core_task&sys_id=${sys_id}
Regards
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
‎03-26-2021 03:38 AM
Hi,
small update in my earlier post
if the page is for HR -> then use this -> hrm_ticket_page
/esc?id=hrm_ticket_page&table=sn_hr_core_task&sys_id=${sys_id}
Regards
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
‎01-31-2024 10:14 AM - edited ‎02-02-2024 08:15 AM
Your method works when the notification is from the same HR Case [sn_hr_core_case] table. So thank you. But how would I do this when the email notification is from the Approval [sysapproval_approver] table and I want the link to HR case from [sn_hr_core_case] table to be routed to ESC portal? What do I need make a change in /esc?id=hrm_ticket_page&table=sn_hr_core_task&sys_id=${sys_id}?
Update: I found the solution in another post in the forum. Replace the above link with the one below.
/esc?id=hrm_todo&sysparm_tableName=sysapproval_approver&sys_id=${sys_id} - This will take the approver to the HR case
/esc?id=hrm_todos_page&table=sysapproval_approver&sys_id=${sys_id} - This will take the approver to the To-dos page on ESC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2024 04:26 PM
I tried the approver url, but it doesn't work for me. It still direct to the My Task page not specific ticket. Anyone has other solutions?