Can I recursively call a flow or subflow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2024 10:37 PM
I was trying to develop a flow and this question came to my mind. Is it possible to create loops using a flow? Can I recursively call a flow to achieve this goal? I have tried many ways and I have not found how to do it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2025 04:39 AM
Yes you can
I have a subflow and an input of a string. I also have a flow variable of a string
convert the input to an array and then process each entry via a lookup record
I then append the sys_id of the record to the flow variable (as a comma separated string)
After I have processed those records, a quick check to ensure the flow variable is not empty, and if not I call the same subflow, this time passing the flow variable values - so is now recursive
If the flow variable is empty, I assign the value of the flow variable to the output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2025 04:44 AM