- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2016 12:38 PM
I need to force cancel a change request, is there any script to it & where to run it?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2016 02:12 PM
change.setWorkflow(false); before your update(); statement.
var change = new GlideRecord('change_request');
change.get('<sys_id of change>');
change.setWorkflow(false);
change.state = 4;
change.update();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2016 03:10 PM
Actually, I'm a newbie to snow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2016 05:44 PM
No worries. We're here to help. Check out my blog post ServiceNow Tips and Tricks for a ton of sites that will help you in your journey.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2016 12:39 PM
sure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-03-2018 02:54 AM
I have created a UI action with the below script to Cancel a Change request from New State, however, nothing happened. Kindly advise
var change = new GlideRecord('change_request');
change.get('<sys_id of change>');
change.setWorkflow(false);
change.state = 4;
change.update();