In service portal, how to show current loggedIn user Location and Temperature

Sathwik1
Tera Expert

In service portal, how to show current loggedIn user Location and Temperature 

@Ankur Bawiskar  

8 REPLIES 8

Ct111
Giga Sage

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

Hi,

I am looking for current location and temparature of the loggedin user 

Hello ,

Check this blog and see if it helps

 

shloke04
Kilo Patron

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

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke