In flow designer what is subflw and input output why we use all this give simple example
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday - last edited yesterday
Hello @kumkumr
In Flow Designer, a Subflow is just a reusable set of steps that you can call from different flows.
Instead of repeating the same logic in multiple flows, you build it once in a subflow and reuse it.
Inputs are the values you pass to the subflow so it knows what to work on (for example, which record or which user).
Outputs are the values the subflow sends back after it finishes, so the main flow knows what happened.
Then any flow can call this subflow instead of rebuilding the same steps again.
In short:
Subflow = reusable logic
Input = what you give to the subflow
Output = what you get back
Simple use case
Let’s say you want to check whether approval is required for a request based on its cost.
You create a Subflow that:
Takes Request Cost as an input
Checks if the cost is greater than 10,000
Sends back an output like approval_required = yes / no
Now, in any main flow:
You pass the cost to the subflow
The subflow does the check
The main flow uses the output to decide whether to trigger approval or skip it
This way, the same approval-check logic can be reused in multiple flows without rebuilding it every time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
subflow is reusable component which can be used by multiple flows
Subflows are just like Flows, but without triggers
It accepts inputs and will have outputs
Based on the input, it does some processing and sets output variables
these output variables are then used by the main flow which calls this subflow
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi @kumkumr !!
Subflow:-
A Subflow is a reusable set of actions in Flow Designer. It works like a function. You build it once and call it from multiple flows or other subflows.
Why we use Subflows
Reuse common logic
Keep main flows simple
Easier maintenance
Inputs:-
Inputs are the values passed into the subflow from the calling flow.
Example:
Text to translate
Incident number
JSON payload
They make the subflow dynamic instead of hard-coded.
Outputs:-
Outputs are the values returned from the subflow back to the calling flow.
Example:
Translated text
API response
Status or result
Simple example:-
Subflow: Translate Text
Input: input (JSON or String) → text to translate
Actions: call translation API
Output: output → translated text
Main Flow:
Calls the Translate Text subflow
Passes text as input
Receives translated text as output
Uses the output in next steps
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for.
Thank You
