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

I don't show the information for the logged in user

In addition, I want to get the information of the login user (Department), is there any good way? I tried other ways to get only the string

 

find_real_file.png

I am not showing please help me

find_real_file.png