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

Zach Koch
Giga Sage

Take a look at this post, this functionality should work for what you need by using the user reference.

 

Thread 

Anurag Tripathi
Giga Patron

Hi,

you can add below to the default field of the variable

javascript: gs.getUser().getLocation();

AnuragTripathi_0-1721047816007.png

 

Hi @Anurag Tripathi I have tried this but not working , I have selected cmn_location table in task specifications and kept this "javascript: gs.getUser().getLocation();"

in default value . Can you share your output ? 

Can you show a screenshot?