Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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.