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 populate field on catalog item.

Abhijit Das7
Tera Expert

Hi Everyone,

 

I have one custom field on catalog item - Requester (this is reference field to User table). I have to auto populate this field with current logged in user whenever I open this catalog item.

 

Please suggest some way.

 

Thanks in advance

 

5 REPLIES 5

Rohit99
Mega Sage

Hi @Abhijit Das7,

Solution mentioned by @Robbie  will be the best practice.
Otherwise you can write following script in Default Value of Requester variable.
javascript:gs.getUserID()

Rohit99_0-1727091778760.png

 

Rohit99_1-1727091814464.png

 

Please mark my response as correct and helpful if it helped solved your question.

 

Thanks,

Rohit Suryawanshi