Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 02:31 AM
Hello,
There is a similar requirement like mine in the post.
But for me it is a group approval. How would I change the script, so it would work for group approval please.
var rec = new GlideRecord('sysapproval_approver');
rec.addQuery('sysapproval', current.sys_id);
rec.addNullQuery('wf_activity');
rec.query();
while(rec.next()){
rec.state = 'not requested';
rec.comments = 'Approval rolled back by change workflow.';
rec.update();
}Regards
Suman P.