View approval in Employee center via url in the approval request email
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 04:51 PM
Hi,
I need help!!
I have created a custom app and it needs approval. In the approval request email, i need to create a url that can redirect the approver to the specific approval task in My Tasks in Employee Center.
However, the My Tasks url is always /esc?id=hrm_todos_page, there is no sys_id associated to the specific approval task.
I have checked a couple of posts regarding custom the url, but it doesn't work and it always goes to the first approval task, not the specific one. Anyone has solutions? Thanks!!
These are the posts i have checked:
/ec?id=hrm_todos_page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2025 05:35 AM
Hi @Julia12, have you found any answer to this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2025 08:41 AM
Hi @Julia12 and @mfhaciahmetoglu ,
I was able to create a URL in a notification script using the format "instance address + portal suffix + page name + table name + sys ID" and it works for me. Hope it works for you as well.
var url = '<a href="' + gs.getProperty('glide.servlet.uri') +
'esc?id=hrm_todo&sysparm_tableName=sysapproval_approver&sys_id=' + current.sys_id + '">' +
'review the approval details at the Employee Center' + '</a>';
template.print(url);
Sarah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2025 09:04 AM
Thanks @Sarah Travis , works like magic. Thank you also to share the pathway.