- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2025 02:27 AM - edited 05-21-2025 02:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2025 02:46 AM - edited 05-16-2025 02:47 AM
Refer to this Nisha, similar thread is answered here
Solved: populate Assignment group based on the selected se... - ServiceNow Community
Here is the Server side script, just ad it to a script include and call from client script
Getservicesupportgroup: function(){
var servicename = this.getParameter('sysparm_service'); //sys_id of service
var getgrp = new GlideRecord('cmdb_ci_service');
getgrp.get(servicename); //goes straight to the service glide record
if(getgrp){ //if there is a glide record
var supGroupCorrId = getgrp.support_group.u_correlation_id.getDisplayValue();
if(supGroupCorrId.indexOf('I-')==0 || supGroupCorrId.indexOf('V-')==0)
return;
else
return getgrp.support_group; //sys_id of the support group
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2025 02:46 AM - edited 05-16-2025 02:47 AM
Refer to this Nisha, similar thread is answered here
Solved: populate Assignment group based on the selected se... - ServiceNow Community
Here is the Server side script, just ad it to a script include and call from client script
Getservicesupportgroup: function(){
var servicename = this.getParameter('sysparm_service'); //sys_id of service
var getgrp = new GlideRecord('cmdb_ci_service');
getgrp.get(servicename); //goes straight to the service glide record
if(getgrp){ //if there is a glide record
var supGroupCorrId = getgrp.support_group.u_correlation_id.getDisplayValue();
if(supGroupCorrId.indexOf('I-')==0 || supGroupCorrId.indexOf('V-')==0)
return;
else
return getgrp.support_group; //sys_id of the support group
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 04:11 AM - edited 05-21-2025 02:11 AM
code snippet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 04:36 AM
so scripts are not working?
what debugging did you perform?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 04:49 AM
Creation of NEW Incident only does not give any alert message .
Tried changing the fields but nothing happens
Thanks