My approvals section
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 02:19 AM - edited 06-04-2024 02:20 AM
Hi Guys,
Here I have " My approvals "
actually, I wanted to know for sure if there no approvals in queue or in pending state for that lets say user A and if we try to impersonate from user A and navigate to the service portal homepage it will not show any " My approvals ".
like for E.g. in below screenshot.
Is my understanding correct?
Please guide!!
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 02:31 AM
Hi @tGhadage ,
Please follow the article below:
'My Approvals' widget in the Service Portal
Please mark correct/helpful if applicable.
Mark this as Helpful / Accept the Solution if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 03:15 AM
have checked it in dev same user does not have mentioned role in article but still its showing for him in dev environment but same could not be reproduced on the production. what's the issue ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 04:24 AM
Hi @tGhadage ,
You can check whether there is any approval record assign for that user or not.
There are 2 conditions which is checked to show the approval in portal:
1. gs.isLoggedIn()
2. gs.getUser().hasRole('approver_user')
If both the conditions are executed to True then it is visible.
Please mark correct/helpful if applicable.
Mark this as Helpful / Accept the Solution if this helps.