Function to get my location
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2022 07:40 PM
Hi,
I'm setting up a query with a widget.
The code below is not getting well, is there any correct code?
javascript: gs.getUser().getLocation()
I want to get my location.
Regards,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2022 07:52 PM
You don't specifically need to dot walk to compare your sys_id,
To further answer your query, this code is absolutely fine :gs.getUser().getLocation();
When you apply the same filter in the list layout, do you get right records there?
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2022 08:08 PM
HI,
Thank you for your comment.
Yes. I copied the query from the list and pasted it into the widget's settings.
The list returns the results correctly, but the widget side does not return only the results of the LOCATION.
Can I use this function with widget?