How to get output from subflow

GBS
Tera Contributor

I have created a subflow and given input as requested item and in the actions I have created two catalog tasks and given the wait for condition and now I was unable to get the output of the subflow to the mainflow where I want to close the ritm in the mainflow. Any idea how to get the task state from the wait for condition? If I use assign subflow outputs the flow gets an error content not found

GBS_0-1741354133440.png

 

12 REPLIES 12

Vishal Jaswal
Giga Sage

Hello @GBS 

It could be possible that your subflow inputs and outputs are not reference type.

Here is the sample Flow and Subflow (tried to mimic your requirement):

vishal_jaswal_0-1741368192538.png

 



Flow Trigger: 

vishal_jaswal_0-1741367611431.png


Actions:

1. Look up Requested Item Record

vishal_jaswal_1-1741367692687.png


2. Subflow - Select your subflow and choose the RITM record pill

vishal_jaswal_2-1741367785547.png


Subflow:

vishal_jaswal_4-1741367866818.png


Subflow inputs and Outputs

 

vishal_jaswal_3-1741367845474.png

vishal_jaswal_5-1741367931604.png

Make sure to publish Subflow

Flow Actions Continued:

3. Close the RITM -- although you can also select the RITM from 1- Look up record

vishal_jaswal_6-1741368070349.png

 

Hope that helps!

 


Hope that helps!

GBS
Tera Contributor

I'm assigning the subflow output, but if i click on save is not getting saved and last giving an error(Your subflow cannot be found. Subflow sys_id:An

GBS_0-1741430351284.png

 

 

Hello @GBS 

 

I recommend to recreate subflow again and see if still it gives same issue which you are facing right now. Also is this happening for other subflow which you have created?

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.