Can I rerun flow designer

Revathi11
Giga Contributor

Dear Community, 

I had a flow designer execution with error. I corrected the error and I would like to run the flow designer again. Is there a way to rerun the flow designer again? I know this feature is available for workflows but not sure how i will do this with flow designer. 

Thank You

6 REPLIES 6

prateek_agarwal
ServiceNow Employee
ServiceNow Employee

Hello Revathi, Good day!

As per my inderstanding, there's no "rerun" feature in Flow Designer.

But you can delete the currently executing/errored out flow context and then do an update on the parent record which will re-trigger the flow, if the conditions are meeting.

You can delete the context record via background script or from sys_flow_context table. 

Also, you can exectue the startFlow() API to create a new context of the flow once the executing/errored out flow context is deleted.

Refer below doc for Flow API:
https://docs.servicenow.com/bundle/orlando-application-development/page/app-store/dev_portal/API_ref...

Stay Safe!

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

This is not possible to rerun the flow.


We can always restart the flow using script or attach a flow using script but same context can be started again.

Thakns,
Ashutosh

Willem
Giga Sage
Giga Sage

Hi Revathi,

Which environment do you want to rerun it? Can you share the flow? Is it attached to a Catalog item or is it triggered by a condition?

If it is triggered by condition, can you make it so these conditions are there again? Depending on your flow settings it will run again.

If not I have a workaround we could try.

Let me know! 🙂

Hi Willem,

I had a error in flow which i have fixed now ,it got struck in create task step. My flow is triggered based on condition ,can you please help me how i can restart the flow so that it should create task and continue the flow.

This issue is on PROD so i can start the flow from frst because it goes for multiple approvals.