Splitting a list into two separate lists
Comments
-
Hello all,
I am trying to split a list into two based on a variable from that list. Is there a way to do that in Decisions?
-
Hi Sam,
There are multiple ways to split a list into two separate lists in Decisions. One possible solution would be using a flow, with “ForEach” step, a rule step, and two “add item to list” step. Below is an example for laying out the process, using a list made up of boolean values.
[img]https://lh5.googleusercontent.com/HweQAoo1Oi66rFO-1PJm-IeDx3QWUkmD69ZEITJ8SZbDXYysAemnIUD5FeSGedCsiiX71qAPPgRZiI60cdjfBlH3PJ9BzBCtmXDCEW89EZum4dpXPcVz7uPTc94HbTy8XFSLNdwE[/img]For the two “Add Item to list” steps, for the “original list” input, choose the select from flow option and use the name of the ouputted list. This will allow the list to be updated with the new item.