Assignment group sys_id
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2023 02:49 AM - edited 05-08-2023 02:52 AM
Can we get sys_id of assignment group of change request through business rule . If so, can you please share the script. or any suggestions.Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2023 02:52 AM
@servicenow14710
try this.
(function executeRule(current, previous /*, gs */) {
// Get the sys_id of the assignment group
var assignmentGroupSysId = current.assignment_group.toString();
// Do something with the assignment group sys_id
gs.info("Assignment Group Sys ID: " + assignmentGroupSysId);
})(current, previous /*, gs */);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2023 02:52 AM
Hello @servicenow14710 ,
If you running the business rule on change request table then just use current.assignment_group to access sys_id of assignment group.
If you are running it on any other table than just use the Glide record query to get it.
Best Regards,
Nayan Dhamane
ServiceNow Community Rising Star 2023.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2023 11:33 PM
Hello @servicenow14710 ,
I am glad that the solution provided by me helped you. Could you please mark it as correct as it will close the thread and help others as well.
Best Regards,
Nayan Dhamane
ServiceNow Community Rising Star 2023.