The CreatorCon Call for Content is officially open! Get started here.

My approvals section

tGhadage
Tera Contributor

Hi Guys, 

Here I have " My approvals " 

Screenshot (191).png

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.

Screenshot (190).png

Is my understanding correct? 

 

Please guide!! 

Thanks! 

3 REPLIES 3

SN_Learn
Kilo Patron
Kilo Patron

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.

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 ?

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')

SN_Learn_0-1717499929381.png

 

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.