Is it possible to open and closed incomplete request and need to start the flow again

Mansi roy
Tera Contributor
Hi, Could anyone please help me on below question. I have one RITM. Because of the flow issue after manager approval the RITM got cancelled. Now the flow has been fixed. Is there any chance to reopen the RITM and need to trigger manager, group approval again as per the flow.
2 REPLIES 2

Ashish21
Giga Expert

Hi Mansi,

Flow will not start again, RITM has to be created again with the new flow.

It is not a best practice to reopen the close one.

 

Please mark this correct if you are satisfied with the answer.

 

Thanks,

Ashish

Community Alums
Not applicable

Hi,

 

Please check the below code to restart workflow:

var gr = new GlideRecord("sc_req_item");

gr.addQuery("sys_id", "---------");

gr.query();

if (gr.next()) {

new Workflow().restartWorkflow(gr);

}

Please mark the answer correct/helpful accordingly::.