collect groups in subflow after each approval and use in main flow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
For each selection in list collector above subflow is called from main flow, after approval , i want to store group name of respective choice and append as array and use this array in main flow after all iteration/approvals, how to to store groups and how to use in main flow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Have the subflow create output that is set in a flow variable in the main flow.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
after some reseach, i got details that group names can't be accumulated in subflow as subflow runs afresh for each iteration.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
you are calling subflow from main flow and in main flow you will already have list collector variable
so you can grab the group names there only
why you want subflow to concatenate and return?
💡 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 || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
i am calling subflow for each choice selection related approver, approval, after approval, there are four choices selected means, routing to four approvers at a time not sequentially, so after each approval capture and collect approved choice related group in subflow. only after all approvals are completed, add user to the approved groups