- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2023 01:29 AM
Hi.
In a business rule, I need to find out which update set is my current update set.
Is there any way to achieve this; doe ServiceNow store this information in a session property?
Any suggestion will be appriciated.
Thanks
Regards
Steen
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2023 11:10 PM
Hi Steen,
you can also get the current update set sys_id using below script in global scope:
new GlideUpdateSet().get()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2023 03:56 PM - edited 10-05-2023 04:13 PM
It's stored in a User Preference called 'sys_update_set'
instanceNameservice-now.com/sys_user_preference_list.do?sysparm_query=nameLIKEsys_update_set&sysparm_view=
Example script usage:
var currentUpdateSet = gs.getUser().getPreference('sys_update_set');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2023 11:10 PM
Hi Steen,
you can also get the current update set sys_id using below script in global scope:
new GlideUpdateSet().get()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2023 12:39 AM
Hi.
Thanks; that was simple 🙂