- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2024 08:51 AM
Hello Community,
Is there a way to reopen a case once it has been cancelled?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2024 09:00 AM
Hi @CLM ,
It is not best practice to reopen Cancelled case. Ask user to create another new case.
But if you want to do it ,try to reopen using background script:
var gr= new GlideRecord('sc_request')//change to case table
gr.addQuery('sys_id', 'sample sys_id');//change to case sysid
gr.query();
while(gr.next()) {
gr.request_state="open";//update to your state number
new WorkflowApprovalUtils().cancelAll(gr, "comment");
var wf1 = new global.Workflow();
wf1.restartWorkflow(gr,true);
gr.update();
}
if my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thanks & Regards,
Sumanth Meda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 07:16 AM
Hi @CLM,
Can I clarify something please...you've marked a response to a question which is incorrect. Is that by mistake?
Can you please check my latest response which provides the tried and tested solution for HR Cases.
Sumanth Meda's response which has been marked as the solution is incorrect and runs on sc_request table. This will not work and is completely incorrect (Sorry - I just want content to reflect correctly for future use for the better of the community)
So I can gain recognition for my efforts, can you please check if it iis in fact my response which is correct and mark accordingly please.
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.
Thanks, Robbie