UI Action visible only when the logged in user is an admin

marrikruthi
Tera Contributor

Make an UI Action visible only when the
logged in user is an admin, and has more
than 5 records where he/she is a caller.
UI Action- GlideRecord - Script Include

8 REPLIES 8

Kieran Anson
Kilo Patron

Hi,

Rather than just posting a user story, can you provide us with detail of what support you're requiring?

HrishabhKumar
Kilo Sage

Hi @marrikruthi ,

you can do this by adding condition in the condition field of your UI Action. Before adding the condition you'll have to create a script include to check if the logged in user is caller in more than 5 records( I assume incidents).

I'm providing the steps with the screenshots for reference below. You can follow that.

1) Create a script include.

HrishabhKumar_2-1718272241992.png

 

2) Add these condition in the condition section of your UI Action.

HrishabhKumar_1-1718272063331.png

 

This should fulfill you requirement.

 

Thanks,

If my solution helped you please mark it helpful and accept this solution. This helps me and the community both.

 

 

no it is not working

Hi @marrikruthi ,

Show me the script include and UI Action. you can paste the screenshot of both records below so that I can check.

 

Thanks.