collect groups in subflow after each approval and use in main flow

venkata2023
Tera Contributor

venkata2023_0-1778600347169.png

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. 

3 REPLIES 3

Mark Manders
Giga Patron

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

venkata2023
Tera Contributor

after some reseach, i got details that group names can't be accumulated in subflow as subflow runs afresh for each iteration. 

Ankur Bawiskar
Tera Patron

@venkata2023 

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! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader