- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2025 11:45 PM
Hi All ,
If there is any service portal developers i need your help here!
I am using approval widget in service portal page. But it was not displaying to end users in portal. To the user who has approval user or approval admin role it displaying. But In the widget the role field was blank and even in the server script i don't find any role restricting script.
So i am unable to point out where the issue happening! Hence required someone assistance in this. I want to display the approval widget to all the end users.
Kindly assist.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2025 06:55 AM
The issue was in service portal widget there is one widget called " Approvals" if this widget was used in service portal page, Then if user do not have any roles and approvals then the widget was not displaying in service portal page. So to fix this only 1 line of code edited in approvals widget server script
The single line of code : data.showApprovals = gs.getUser().hasRole('approver_user'); replace with data.showApprovals =true;
The issue was fixed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2025 12:46 AM
they should have proper approval role and they should be able to see it
That user is not able to see My Approvals option in header or they are able to see but unable to see the approval record itself?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2025 01:20 AM
They are unable to see approval record itself under my approvals. Even my approval was not displaying
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2025 02:16 AM
are they delegate of someone?
please share some screenshots
are they able to see the approvals in native left nav module -> My Approvals?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2025 06:55 AM
The issue was in service portal widget there is one widget called " Approvals" if this widget was used in service portal page, Then if user do not have any roles and approvals then the widget was not displaying in service portal page. So to fix this only 1 line of code edited in approvals widget server script
The single line of code : data.showApprovals = gs.getUser().hasRole('approver_user'); replace with data.showApprovals =true;
The issue was fixed