We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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