URL in an Email notification to portal view of a HR Task

Matt Lodge
Tera Expert

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.

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

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}

find_real_file.png

find_real_file.png

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

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

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

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

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?