Is there a way to fetch the logged in user's location and populate in input form screen

Guru raj1
ServiceNow Employee
ServiceNow Employee

Is there a way to fetch the logged in user's location and populate in input form screen

2 REPLIES 2

Vengateshwaran
Mega Guru

Hi @Guru raj1 ,

Yes you can display the location of the logged-in user in UI using Display Br.

Try - gs.getUser().location

 

Kindly, please mark my solution as Helpful/Correct, if applicable. If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct!!!

Hello @Vengateshwaran from location I mean the actual device location and not the one from the sys_user table. apologies for the confusion.