gs.getUser().getLocation() returning empty

JoanaFernandes
Tera Contributor

Hello everyone!

 

I've been studying the gs.getUser().getLocation() on my PDI as a system administrator. I've assigned a random location to the system administrator, but it's still not showing any results. Not only that, but I've changed locations three times and still no difference in the final result. Does anyone know why I'm not getting anything?

Best Regards,

Joana Fernandes

1 ACCEPTED SOLUTION

Brian Lancaster
Tera Sage

The only documentation in can find for getLocation is in GlideRecord. It does not seem to be a valid  function under GlideSystem. Also it brings back the location of the record rather then the location in the user records.

https://developer.servicenow.com/dev.do#!/reference/api/washingtondc/server_legacy/c_GlideRecordAPI#...

View solution in original post

2 REPLIES 2

Brian Lancaster
Tera Sage

The only documentation in can find for getLocation is in GlideRecord. It does not seem to be a valid  function under GlideSystem. Also it brings back the location of the record rather then the location in the user records.

https://developer.servicenow.com/dev.do#!/reference/api/washingtondc/server_legacy/c_GlideRecordAPI#...

Thank you for the help Brian!