Where is "g_user.getFullName()" stored?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2017 08:17 PM
Where is "g_user.getFullName()" stored?
Can i create my own g_user function?
Thanks,
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2017 08:34 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2017 09:56 PM
Unfortunately No, you can't create new functions.
here, have a read: http://wiki.servicenow.com/index.php?title=Client_Script_Best_Practices#gsc.tab=0
Global variables in business rules http://wiki.servicenow.com/index.php?title=Client_Script_Best_Practices#gsc.tab=0
Client Script Best Practices - ServiceNow Wiki
g_form.getFullName():
GlideUser (g user) - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-03-2017 03:15 AM
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-03-2017 01:03 AM
Hi Steven,
Its saved in the sys_user.name field.
Thanks,
Rashmi