Goran WitchDoc
ServiceNow Employee

I've seen a couple of questions in the community about how to get more data from the server when you write a Client Script. What comes in mind is everything from GlideRecord calls, use of getReference method to GlideAjax and g_scratchpad method.

I made a video with having best practice in mind and that would rule out both the GlideRecord call and the getReference. I also show how to avoid another server call when you do a setValue on a reference field which is pretty common to do if your mind might be somewhere else when you write the code.

2 Comments