How to return the "Cancelled" State of Case to previous state

Insang Lim
Kilo Contributor

Some users are mistakenly clicking the "Cancel" in the case window of Agent Workspace.

There are no re-comfirming pop-up and the case going to dead-end.

So, I am asking how can we recover this mistakenly "Cancelled" case?

2 REPLIES 2

Community Alums
Not applicable

Hi @Insang Lim ,

You can run a Background script, something like this:

var gr = new GlideRecord("table_name");

gr.get("your_sys_id");

gr.state= '-6';( the state which you want them to see)

gr.update();

 

Mark my answer correct & Helpful, if Applicable.

Thanks,
Sandeep