Flow variable passed to subflow from parent flow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2024 03:36 AM
Hi All,
I have created two flow variables one in parent flow and other in subflow , how do I pass the value of this flow variable from parent to subflow and subflow to parent.
Thanks in advance
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2024 05:15 AM
Hi @Anubhav24 ,
The input and output variables of your subflow are probably what you're looking for.
When defining the input variables in your subflow, you can populate these variable(s) when adding the subflow to your parent flow.
When the flow ends, you feed back the output variables to your parent flow.
Regards,
Hayo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2024 11:00 PM - edited 07-31-2024 11:01 PM
Hi @Hayo Lubbers ,
Thanks a lot for your reply, however my query is still not resolved yet. I have created below flow variable.
And under output , i do not see this variable to be sent as output to the main flow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2024 02:42 AM
Hi @Anubhav24 ,
There is a difference between flow variables and the input/output variables of a subflow. Explaining this, would be too much for this community, but luckily they already did at the NowLearning:
And mainly part #3 regarding flows and subflows.