How can I auto populate user location information in service catalog variable?

itspezi1
Tera Guru

Hello team,
How can the location be automatically displayed by the user in the catalog item? What type do I have to add?

Many thanks

 

1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

Hi,

So you'd create a reference variable that points to the location table, then you can set the default value of that variable to be:

find_real_file.png

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

Which will automatically place the location of that user in that field for you.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

10 REPLIES 10

itspezi1
Tera Guru

many thanks for your help.