How to get output from subflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2025 05:32 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2025 05:35 AM
Hi @GBS
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2025 05:47 AM
you can define Output variables for your subflow and then assign it.
Then you can access those in main flow
flow designer - How to use subflow outputs in flow script
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2025 06:01 AM
@Ankur Bawiskar @Dr Atul G- LNG Thanks for the response, but if I use the Assign Subflow Output and give the data in subflow I'm getting an error(Your subflow cannot be found. Subflow sys_id:An) and I was unable to open the flow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2025 06:02 AM
are you sure subflow is published?
try adding the published subflow again in your main flow.
Please share some screenshots
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader