Unable to get the todo sysid on hrm_todos_page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2025 07:59 AM
Whenever user clicks the My Tasks link on esc header, the user is navigated to "hrm_todos_page". The list of task is getting loaded. When we select any particular task inside it, the task will load inside the widget but it will not change or update the URL. I have a requirement to gather task sys id which user is seeing on that page and need to populate certain data on the task by using the task sys id. I see some articles suggesting the g_form.getUniqueValue() but this returns only the catalog item sysid not the task sysid.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2025 09:13 AM
I believe that widget shows approvals that the user is assigned to.
To find the sys_id, you can... CTRL + right click on the widget --> Log to console $scope.data --> open developer console --> open $scope.data object --> todosToShow --> recordsToShow --> open --> each record has an object with the property sysId
If it helps, the query that hrm_todos_page looks for on the sysapproval_approver table is:
sysapproval_approver?sys_id=javascript:new global.ApprovalDelegationUtil().getMyAndDelegatedApprovals()^ORapprover=javascript:new global.ApprovalDelegationUtil().getApprovers()^sysapprovalISNOTEMPTY^ORsource_table=kb_knowledge^ORsource_table=kb_knowledge_block^state=requested^sysapproval.universal_requestISNOTEMPTY^EQ
If you can further clarify what you need help with, I may be able to assist better