Showing results for 
Search instead for 
Did you mean: 

Merge Arrays Outside of a For Each

I am using a for each action and creating an array within it - I would like to merge those arrays into a single array (through a union or whatever means) outside of the for each so I am left with a single array.


Is there a way to do that?

Community Support Team
Community Support Team

Re: Merge Arrays Outside of a For Each

Hi WiggityZwiggity,


May you consider to use the Join action. We could join a list of strings using this action. Please check this blog at here:


Please try it on your side to see if it will work for you.


Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (6,565)