gs.getSessionID() is throwing an error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2025 11:13 PM
The above lines of code are used in a script step in a Data stream.
If the session ID is empty, we are throwing an error. why would be the session ID be empty when the subflow runs as system and how can we resolve it ?
Thanks in Advance !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2025 04:57 AM
Would need to see the entire script. Is util defined?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2025 05:07 AM
what's your business requirement?
where is this script written
some screenshots
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2025 12:36 AM - edited 12-22-2025 12:56 AM
@Ankur Bawiskar , @Brad Bowman , Thanks for your Reply
We are using this in a flow designer Data stream
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2025 12:47 AM
we don't know what input you are passing to that function
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
