web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Quickly Combining Mult...
Power Automate
Answered

Quickly Combining Multiple Arrays

(0) ShareShare
ReportReport
Posted on by 125
Hello!

I need to combine multiple arrays into one.
I have guaranteed that they are all unique values so we can use union().
The order of items needs to be kept intact.
The number of arrays we are combining is dynamic.

For now, I am using an apply to each loop which first uses union to combine one of the arrays with an array variable and then sets the same array variable to the result.

This works fine, but apply to each is pretty slow, especially while concurrency is turned off.
Is there any way to combine my arrays without using a loop?

Thank you!
Categories:
I have the same question (0)
  • Verified answer
    Chriddle Profile Picture
    8,708 Super User 2026 Season 1 on at
    Since you are using an Apply to each I assume that this is about flattening an array.
  • BB-18031745-0 Profile Picture
    125 on at
    That's exactly what I need, thank you @Chriddle!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard