g_user.getUserName() doesn't work in Workspace.

sarasf
Giga Contributor

Hello,

 

g_user.getUserName() works on Platform view but doesn't work in Workspace UI Action.

What is the other method to make it work in workspace?

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@sarasf 

yes it doesn't work.

use this and it works in both

g_user.userName

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader