The CreatorCon Call for Content is officially open! Get started here.

workflow

harry24
Tera Contributor

Hello ,

 

How to restart activity in a workflow ?

 

Thanks

3 REPLIES 3

Sagar Pagar
Tera Patron

Hi @harry24,

 

Can you explain in details with screenshots?


If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar

The world works with ServiceNow

I have requirement where some of my tasks got set to state closed incomplete due to some timer issue , now I want to restart only those tasks and not the complete flow .

 

Samaksh Wani
Giga Sage

Hello @harry24 

 

Take a look at the Workflow script include. There is a method called restartWorkflow(). It takes two arguments, the gliderecord object related to the workflow you want to restart, and a boolean to indicate whether to keep approvals in their current state or reset those as well.

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.

 

Regards,

Samaksh