Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Problems with using g_user on a service portal widget

tombennett
Tera Contributor

Hi,

Does anyone know a way for me to get a field value off a user form in angular?

I have tried using a script action to put the field into the user session data and then used 'g_user.getClientData('field name');' to get the stored field data but this seems to break the widget, I have had a look around the community and noticed that a few other developers have had issues with g_user.

I have also tried using glide to dot walk to the user record and find the field but this does not work either.

Cheers,

Tom

5 REPLIES 5

Sush3
ServiceNow Employee

Hey Tom,



Maybe it's too late, Serviceportal provides an angular service to get information of the current user. Please check out this blog GlideUser/g_user in ServicePortal



Kindly mark correct/helpful if this has answered your question.



Thanks,


Sush