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.

location field should be populated by logged in userlocation

kiran kumar m1
Tera Contributor

I have a record producer in that I have a location(reference) variable , I want that field should be auto populated by the logged in user location.

5 REPLIES 5

TRy this instead

gs.getUser().getRecord().getValue('location')
-Anurag