Reopen Case

CLM
Tera Contributor

Hello Community,

 

Is there a way to reopen a case once it has been cancelled?

1 ACCEPTED SOLUTION

Sumanth16
Kilo Patron

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

 

View solution in original post

10 REPLIES 10

Robbie
Kilo Patron
Kilo Patron

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