Service Portal add current user's name i.e. "Hi Joe, How Can We Help?"

reginabautista
Kilo Sage

Hi guys how can we add the current user's name to the "How Can We Help?" message on the main SP page? Please refer to attached screenshot. Thanks - Regina

1 ACCEPTED SOLUTION

For the newly cloned widget...



Just write the below line in the Server part:



data.user = gs.getUserName();



View solution in original post

21 REPLIES 21

Wonderful, that worked! Thanks Ashish!


Hello Ashishgupta,

is it possible to dotwalk from this script?

data.user = gs.getUserName();

I need to the value of the "first_name" field from [sys_user] table.

thanks!

 

 

 

I actually figured it out...you can!

data.user = gs.getUser().getFirstName();

 

 

Hello Ashishgupta, I'm very new at ServiceNow.  Could you please tell me step by step where do you go to add data.user = gs.getUserName();?  Thank you so much

Derek3
Kilo Expert

Have you created a Widget with your new code in it?



If you have then Open the Index Page in Designer and Remove the Out the Box HomePage Search widget with your new one.