Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Auto populated current user in catalog item

asasas
Kilo Contributor

I have a catalog item called MacBook which contain a variable : Requestor(mandatory)   which is   reference to user table.

11.PNG

what I want is this "Requestor"   should auto populated the current user name.
Can someone help me?

Thanks

4 REPLIES 4

Harsh Vardhan
Giga Patron

right click on variable and put "javascript:gs.getUserID();" in default value .


Mihir Mohanta
Kilo Sage

In the default value field of the "Requestor" variable dictionary form write



javascript:gs.getUserID();




Thanks,


Mihir


asasas
Kilo Contributor

How to auto populate log in user Email and phone number?