- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2022 02:25 AM
Hi Team,
I am facing issue with employee center portal in approval request form .
If i impersonate to user who is having role 'approver_user'.
1)On clicking of My Task from employee center header i am getting the below errors. and also checked the console browser.
Line number 113 (sp_widget.34a149f0531130107eb7ddeeff7b1271.script)
Code in widget :
function getPostApprovalInfo() {
data.isPosted = true;
data.caption = gs.getMessage("The request was {0}", approvalGr.state.getDisplayValue());
var dateRE = /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}.*\n/;
var journalEntryComment = commentGr.comments.getJournalEntry(1); // line 113 in widget.
data.comment = journalEntryComment.replace(dateRE, '').toString();
data.timeStamp = approvalGr.sys_updated_on.toString();
}
2)If i give sn_request_read and sn_request_approval_read role then errors are not displaying but approval request variable details are not showing see the below screen.
3)If i assign ITIL role to same user then i can able to see the approval request form details as expected.
But without assigning others roles like ITIL or sn_request_read and sn_request_approval_read request item approval form should display complete RITM details.
Could you please help on this.
Regards,
Imam.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2022 05:43 AM
Hi Team,
I got resolved my issue by creating Below ACL.
Regards,
Imam.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2022 05:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2022 05:43 AM
Hi Imam,
Happy to see you where able to fix this for you. However, I'm still experiencing issues with the My Task page for approvals on RITM, even after making an ACL like the one you´ve made.
Screen shot of my ACL:
I realize this thread is marked as solved, but I just wanted to hear your take on this, before I make a new question.
I have made the ACL you made, but users with only approver_user role still see error messages and cant see details and activity streams, and still receive error messages caused by the commentGr (GlideRecordSecure) still being "Null".
Users can still approve, but gets similar error messages after approving:
After a user with only the approver_user roll has approved a RITM approval, the user gets error messages when entering My Task page. These seems to be caused by the user not having access to the Journal / Comments of said approval
Rejecting is not possible, it will result in similar error messages, after writing rejections reason in pop up:
I assume you don't have these error messages after creating the ACL? Could I ask you to test this, or tell me if you found a solution to this?
I´ve tried several things, like changing the commentGR variable to a regular GR, making further ACL´s and such, but nothing seems to completely fix the issues in the My Task page/HRM Todos widget(s).
I hope you are able to help me.
Regards
Lasse
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2022 11:10 PM
HI Lasse,
Even i had faced same issue and after adding below 2 roles to user my issue got resolved.
1.sn_request_approver_read
2. approver_user
Please mark it help and correct the answer if your issue got resolved.
Regards,
Imam.