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

@HrishabhKumar 

script include

marrikruthi_0-1718343758146.png

UIaction

marrikruthi_1-1718343881115.png

 

 

Hi @marrikruthi ,

 

Use below code and implement - Its working!!!. Please mark this as helpful if below code solves your requirement

 

vamsi55_0-1718346431176.png

 

vamsi55_1-1718346465632.png

 

Change later condition to: new UIactionvisible().CallerInFive(gs.getUserId())

Hi @marrikruthi 

Name of your script include should be same as the name of function inside the script include. i.e.. CallerInFive