Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

When server will release GlideSession data ?

sieusaopolo15
Giga Sage

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 ?

1 REPLY 1

Anil Lande
Kilo Patron

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.

https://developer.servicenow.com/dev.do#!/learn/learning-plans/utah/new_to_servicenow/app_store_lear...

 

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande