- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2023 09:19 AM
Good morning how can I make the else statement edit existing group routings?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2023 03:45 AM
Hi @Bob44t
Try below code
var grp=new GlideRecord("u_group_routing")
grp.addQuery('sys_id',recordToEdit);
grp.query();
if(grp.next()){
grp.field_name='';
grp.update();
}
Please mark helpful and correct if it really helps you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2023 03:45 AM
Hi @Bob44t
Try below code
var grp=new GlideRecord("u_group_routing")
grp.addQuery('sys_id',recordToEdit);
grp.query();
if(grp.next()){
grp.field_name='';
grp.update();
}
Please mark helpful and correct if it really helps you