The Now Platform® Washington DC release is live. Watch now!
02-18-2020 02:03 PM
Hello,
We are on NewYork version. I have a need to find out about logged in user field value on client script (on INC table).
How can I get that information? Below is the custom field value I need in client script. (Service Type)
I am able to get user Id, but nothing beyond that.
Please advise.
Thanks,
Client Script on INC table.
Solved! Go to Solution.
02-18-2020 02:22 PM
You don't have access to everything about the user client side. Given your script is an onLoad, you may be better off using a display business rule to set a g_scratchpad variable and utilizing that in your onLoad script. See the following article for an example:
02-18-2020 02:05 PM
Check this out
https://www.servicenowguru.com/scripting/user-object-cheat-sheet/
02-18-2020 04:34 PM
Thanks Prateek,
For providing the summarized document.
Thanks,
Rajan
02-18-2020 02:22 PM
You don't have access to everything about the user client side. Given your script is an onLoad, you may be better off using a display business rule to set a g_scratchpad variable and utilizing that in your onLoad script. See the following article for an example:
02-18-2020 04:30 PM
Hi Michael,
Thanks that seems to be right approach for the solution.
Thanks,
Rajan