319 views

Description

Subflows not having the Latest Snapshot on the instance can not be put on a flow.

Steps to Reproduce

1. Create a flow.
2. Try to add Requested Item Manager Approval subflow to the flow.

Notice nothing happens and the rest request returns a flow not found.

Workaround

This problem has been fixed. If you are able to upgrade, review the Fixed In section to determine the latest version with a permanent fix your instance can be upgraded to.

The workaround script below fixes the issue by setting the latest snapshot to the same id as the master snapshot on the three catalog Sub Flows that are not working.

var gr = new GlideRecord("sys_hub_flow");
gr.addQuery("main_snapshot", "!=", "");
gr.addQuery("type", "subflow");
gr.query();
while (gr.next()){
var snapshot = new GlideRecord("sys_hub_flow_snapshot");
if (snapshot.get(gr.latest_snapshot))
continue;
gs.print("Fixing latest snaphot for " + gr.name);
gr.latest_snapshot = gr.main_snapshot;
gr.setWorkflow(false);
gr.update();
}


Related Problem: PRB1392398

Seen In

There is no data to report.

Fixed In

New York Patch 8
Orlando Patch 3
Paris

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2020-11-17 11:35:26
Published:2020-11-17