best way to declare Global variables on Service Portal (server side)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-17-2021 07:22 AM
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.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-17-2021 11:59 PM
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.