- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 07:09 AM
Hello Community,
I need help with an issue regarding Change Requests. A user backed out of implementing a change, and instead of entering it into the cancelled state put the ticket in the closed state. I am now unable to move it to the cancelled state. This error affects our reporting, and needs to be corrected. What can i do to correct this issue? The request, once in the closed state does not allow me to edit state, and even when trying to use business rules to force the state to cancelled I get error messages for "Invalid Update". Any help would be greatly appreciated. Thank you.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2023 09:28 AM
Did you try using setWorkflow(false) ,
try below script in your background script
var chg = new GlideRecord("change_request");
chg.get("1237f5de47410200e90d87e8dee490b8"); //replace this sys_id with closed change sys_id
chg.state=4; //set to canceled
chg.setWorkflow(false); //don't run any business rules/flows/SLAs
chg.update();
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2023 09:28 AM
Did you try using setWorkflow(false) ,
try below script in your background script
var chg = new GlideRecord("change_request");
chg.get("1237f5de47410200e90d87e8dee490b8"); //replace this sys_id with closed change sys_id
chg.state=4; //set to canceled
chg.setWorkflow(false); //don't run any business rules/flows/SLAs
chg.update();
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025