Fetch the places where Subflow is invoked from

vijaymusipatla
Tera Contributor

Hi Team,

 

I have a sub-flow 'XYZ' and would like to backtrace from all places it is invoked from.

Whether Subflow can be triggered from any other place apart from flows? how to know what all flows the subflow is invoked from?

 

Regards

Vijay

1 ACCEPTED SOLUTION

The Machine
Kilo Sage

sys_hub_sub_flow_instance has what you are looking for.  Flow column has the flow, subflow column has the subflow

TheMachine_0-1708025451155.png

 

View solution in original post

4 REPLIES 4

The Machine
Kilo Sage

Check the sys_flow_context table, you could query for that subflow name, and then in the Source Record column it should be the flow that triggered it.  You could use that column to determine the flows that have called that subflow.  Or the record (if you call a subflow by script).

vijaymusipatla
Tera Contributor

Thanks for the response.

I see this table holds the transaction details of the flow/subflow.

 

I would like to know the list of flows where the subflow 'XYZ' is invoked from.

The Machine
Kilo Sage

sys_hub_sub_flow_instance has what you are looking for.  Flow column has the flow, subflow column has the subflow

TheMachine_0-1708025451155.png

 

vijaymusipatla
Tera Contributor

Thanks for providing the solution.