- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2023 10:28 AM
Hi Team,
Can someone please help me on below query,
Hiring manager receiving an email with all the task assigned to him, once he received the email he wanted to open the each task from email. if we click on the each task from mail, task should open,
How to add the link for each task , to open from the email.
Please help me on this.
Thank you..
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2023 07:34 AM
replace the
template.print( "<td><left>"+gr.getDisplayValue('number')+"</left></td>" );
with
template.print('<td><left><a href="https://' + gs.getProperty('instance_name') + '.service-now.com/nav_to.do?uri=sn_hr_core_task.do?sys_id=' + gr.sys_id + '">' + gr.number + '</a></left></td>');
you can interchange the gr.number with gr.getDisplayValue('number') , if it not work .. however it should because gr result-set on sn_hr_core_task table. let me know if it works for you.
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2023 09:46 AM
Hi @nikhitha24
Do what @AshishKM already mentioned, but change the url:
template.print('<td><left><a href="https://' + gs.getProperty('instance_name') + '.service-now.com/esc?id=hrm_todo&view=sp&sysparm_tableName=sn_hr_core_task&sys_id=' + gr.sys_id + '">' + gr.number + '</a></left></td>');
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2023 10:54 AM
Hi @nikhitha24,
How this notification is printing the 2 column data , any notification script capturing the HR-Task from HR-Case.
Check the script part , where this table is being prepared then you have to add record link in the template.
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2023 12:57 AM
@AshishKM Yes we have created Notification email script, that email script printing the data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2023 07:34 AM
replace the
template.print( "<td><left>"+gr.getDisplayValue('number')+"</left></td>" );
with
template.print('<td><left><a href="https://' + gs.getProperty('instance_name') + '.service-now.com/nav_to.do?uri=sn_hr_core_task.do?sys_id=' + gr.sys_id + '">' + gr.number + '</a></left></td>');
you can interchange the gr.number with gr.getDisplayValue('number') , if it not work .. however it should because gr result-set on sn_hr_core_task table. let me know if it works for you.
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2023 09:28 AM
Hiring manager receiving an email with all the task assigned to him, once he received the email he wanted to open the each task , once we click on task and it should navigate to employee center , not to the native instance of task form.
see the attached screenshot for reference.