In service portal, how to show current loggedIn user Location and Temperature
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2022 02:43 AM
In service portal, how to show current loggedIn user Location and Temperature
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2022 04:11 AM
Do something like this in your server script of widget.
data.user = gs.getUserName();
And then call it in HTML template put below.
<p> Hi {{data.user}} welcome
For temperature information if it is getting captured automatically in your user table then you can just call it like above , if you want to take it from third party then check this link for reference
Mark my ANSWER as CORRECT and HELFPUL if it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2022 04:15 AM
Hi,
I am looking for current location and temparature of the loggedin user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2022 04:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2022 04:23 AM
Hi,
You can fetch current logged in User using script below in your widget:
Server Script:
data.getUser = gs.getUserName();
HTML:
<div>
<span>{{data.getUser}}</span>
</div>
This way you can retrieve current logged in user. Not sure what do you mean by temperature here as there are no such fields OOB on user table.
Can you explain your requirement in detail here?
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke