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 / Efficiently Working Wi...
Power Automate
Answered

Efficiently Working With Arrays of Arrays of Objects

(0) ShareShare
ReportReport
Posted on by 125
Hello,

I'm trying to improve the speed / number of actions of my flows and have run into one obstacle which I can't find a solution to.

In this flow I send a batch request to get the version history for an array of sharepoint list items.

I loop through the resulting array of version history arrays.
For each of the version histories I use a select action to isolate the editors.
I merge this array of editors with itself to remove any duplicates and then I join it to create a string.


I would like to remove this for each loop as it's going to make the number of actions balloon as the number of sharepoint list items increases.
Can anyone think of a workaround to avoid this loop?

Thank you
Categories:
I have the same question (0)
  • CU30121719-0 Profile Picture
    on at
    Share your flow please.
     
  • BB-18031745-0 Profile Picture
    125 on at
    Hi @CU30121719-0 , I've added a screenshot of the looped actions above.
  • CU30121719-0 Profile Picture
    on at
    Please provide the whole loop screenshot if you want me to help.
  • BB-18031745-0 Profile Picture
    125 on at
    All I do after this in the loop is add the result to an array @CU30121719-0
  • CU30121719-0 Profile Picture
    on at
    Well, as you like, @BB-18031745-0. No picture - no help, sorry.
  • Verified answer
    Manish Solanki Profile Picture
    15,169 Moderator on at
    Hi,
     
    You can use XML and XPATH within select action to remove loop and make the flow efficient.
     
    Please share the screenshot so that I can help you in XML/XPATH approach.
     
    If this reply helps & solves the problem, pls mark it as accepted solution.
     
    Thanks,
    Manish Solanki
    you tube channel: Manish Solanki - YouTube
  • BB-18031745-0 Profile Picture
    125 on at
    I was able to get this to work with xpath, thanks @Manish Solanki for your simple and effective response!

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