Flow Designer | Resume a failed Flow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2020 04:43 AM
Hello guys,
Do you know if exist any solution or workaround to resume or re-process a failed flow instance (flow return "error")?
It may happen that a flow fails due to an unexpected value or situation and as I can see in such cases there is not really a way of fixing that specific failed flow instance, so only way is to start from scratch, which in case of a Service Catalog item, it would mean create a new request.
We thought about the possibility of re-run the failed request using the TEST button but it is not ideal.
Thanks!
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2020 05:08 AM
HI,
Look at the API
Thanks,
Ashutosh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2020 05:15 AM
Hi Gabriel.sk,
There is possible way to restart a flow from a specific point in execution (like error flow). But you can use flow API to trigger it,
var ritm = new GlideRecord("sc_req_item");
ritm.get("da60e53ddbe958907f887d8039961966"); //sys_id of the affected RITM
sn_flow_trigger.FlowTriggerAPI.fireCatalogTrigger('global.name_of_the_form', ritm);
If there are too many you can go for a query and pass the sysid to trigger the flow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2020 12:28 AM
Hi Gabriel,
Did you get any chance to try the above script?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2022 11:39 AM
I just tried this as we have an instance where we need to restart a flow. I ran it as a background script and it did not work. No errors in the logs or when running the script, it just ran but didn't start a new flow.