How to show current approval request in MY TASK on EC.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2023 12:03 AM - edited 03-20-2023 12:05 AM
I have created a mail script in the preview email there is a text with a link "Click here to view approval request" once the approver user clicks on that link it should take that user to MY TASK on EC where approval requests are present.
But i want to take the user to MY TASK on EC and that should show the current approval record.
} else {
gs.info('Inside else');
var approvalLink1 = "ec?id=hrm_todos_page&sys_id=" + current.sys_id;
var hyperlink1 = '<a href="' + approvalLink1 + '" target="_blank">Click here to view Approval Request Employee Center</a>';
template.print(hyperlink1);
}
URL of the employee center shows an SYS ID of current record but it's matching with record which is showing in MY TASK - as it always shows 1st approval request.
How to redirect user to show current approval request on MY TASK.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2023 10:31 AM
Hi there - I don't know if you were able to figure this out, but this came up recently for us too.
After a little investigation, I found in the "HRM Todos Summary" OOB widget, there is a function in the client controller called "getLinkedTodoParam".
Widget editor showing the getLinkedTodoParam function.
It looks like the function does some regex to extract a URL parameter in the form of "todo={{some_sys_id}}". You can try it out by getting the sys_id of the approval record and appending it after the "todo" parameter.
I updated our email templates that act on the sysapproval_approver table to include "&todo=${sys_id}" in the Message HTML at the end of the URL string link. If the URLs aren't in the Message HTML, you might need to update your notification email scripts (or anywhere else notifications might be housed in your system).
Hope this helps,
Mitch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2025 09:18 PM
@Mitch Fleischm1 couldn't find the "getLinkedTodoParam". function in the "HRM Todos Summary" OOB widget,
Can you share more details