Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Widget get user name and user id

hurm
Tera Contributor

I want get the current user name and user id ,display in the preview

plase help me 

thanks

 

find_real_file.png

1 ACCEPTED SOLUTION

Hi zhian,

If you look at the screenshot that I posted earlier the fields that are references have two correlating properties. One property displays the sys_id of the referenced record and the other one displays the display value of the record. It's indicated by the suffix of "_dv" at the end of the property name.

So to show the display value of the department it would be user.department_dv instead of user.department.

find_real_file.png

View solution in original post

21 REPLIES 21

@zhian yes is  this the output that you are looking for ?

yes.

I want to display the currently logged in user information (ID and NAME) on the employee center head bar

@zhian did my above code work ?

 

not what i want

I want to display like this

find_real_file.png