Where is "g_user.getFullName()" stored?

Community Alums
Not applicable

Where is "g_user.getFullName()" stored?

Can i create my own g_user function?

Thanks,

4 REPLIES 4

peterh_smith
Tera Contributor

You cannot create new functions on Glide objects such as GlideUser.



What are you trying to do?



If you need data on the client side and it is static for the life of the form, look at business rules that run at Display time and populate g_scratchpad.



If you need to make arbitrary server-side queries and calculations, use GlideAjax.



If you want to filter references and choices that depend on earlier selections, there are ways to avoid writing Ajax queries by issuing javascript: calls from the reference qualifier and using attributes to specify which values are dynamic.


I wouldn't refer to wiki anyone since it doesn't hold information about release that are within the release circle. Better to go to docs.servicenow.com instead.


For example: https://docs.servicenow.com/bundle/jakarta-servicenow-platform/page/script/client-scripts/concept/cl...


Rashmi Bansal
Mega Guru

Hi Steven,



Its saved in the sys_user.name field.



Thanks,


Rashmi