How to combine continuously incoming items into a list that come from a loop?

after hours of testing and researching docs, i still cant figure out how to combine continuously incoming items into a list, i know i might have to use merge or aggregate or code directly but i do not understand how.

this is the relevant workflow.
in the first http request, i call for a list, which i then split it into multiple items to process, then i put them into a looping system that goes through another http request and a code to process the information i need originally, then it goes over to an if node which then decides whether the item has a particular “thing” or not, and if there is the thing in the item, it goes over to the aggregate node. this is where im facing the issue. i wish to make to combine all the single array item into a list of all the true outputs again that came and then go through procedures out of the relevance currently. also ive connected both the outputs of the if node to the looping over items again, because i think thats how the looping works?
what should i do to combine them items together again?
and are there any issues with the workflow?
ive tried something like this but i dont think this will work

Hey @notelin hope all is good.

If what you desire is to combine the results back into a single list after all the processing inside the loop is done, you need to use the Aggregate node instead of the “No Operation, do nothing” node that you have connected to the “Done” leg of the Loop Over Items. After all the items are processed they are spat out of the Done branch, and this is where you would aggregate them back into a single item.

1 Like

thank you, i figured it out
i aggregated the fields i needed and ran a code after that to sort them out
-notelin

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.