retrigger approvals for what ever RITM's and Tasks that need an approval ?

Sudheer Reddy
Tera Contributor

retrigger approvals for what ever RITM's and Tasks that need an approval for only one time ?

3 REPLIES 3

Harish KM
Kilo Patron
Kilo Patron

Hi to retrigger approval one need to understand how approvers are currently handled.

Regards
Harish

Hi 

Currently the approval flow is based on the catalog workflow at RITM approvals, Here the question is like There is any possibility that can be retrigger for all the catalog items On RITM level and at Task level, Just one time.

This is something I did to reset approvers. Basically it will restart workflow

var i = new GlideRecord('tablename');

if (i.get("sys_id", "53c6a3a64f0ca740a15dcb4e0210c7ba")) // record sysid

{

new Workflow().restartWorkflow(i,false); //true retains the state of approvals as it is,, false changes the state back to requested
i.state = 2;

i.comments='true wf restart';

i.update();

}

Regards
Harish