Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

best way to declare Global variables on Service Portal (server side)?

Aviv S_
Tera Contributor

Hi

I have many widgets on diff pages on the service portal that use and make the same query (glideRecord query).
The results depend on the current user, and I want to avoid making this calls and just hold the result once (lets say while the user login).
What's the best way without use the GlideSession API?

In other words, I want to extend the GlideUser API that I could get additional info that not exist on this API today. 

5 REPLIES 5

Hi David

As I mentioned above, indeed GlideSession API could be used, and we already use it,
but I wonder if there is other (better) way so those values won't be depend on session.