When server will release GlideSession data ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-28-2023 07:25 PM - edited ‎12-28-2023 07:32 PM
Hi,
I'm curious about how schedule import jobs using "Custom (Loaded Script)" interact with GlideSession data. If the session function is used when the form is created, based on this documentation, will the system release the session data when the import is done ? I'm asking this because I'm using this gs.getSession().putClientData to define which cloud function is used to get data then import those data from BigQuery to SN. Is there any better way to store id token and used it for the next job by system ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-28-2023 09:05 PM
Hi,
If your scheduled job is executing once in a day (or not running parallel) then you can use system property to store query.
use gs.getProperty('propertyName') and gs.setProperty('propertyName', "newValue")
This way your query will be preserved even if session ends.
Thanks
Anil Lande