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 101
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
    143 on at
    Share your flow please.
     
  • BB-18031745-0 Profile Picture
    101 on at
    Hi @CU30121719-0 , I've added a screenshot of the looped actions above.
  • CU30121719-0 Profile Picture
    143 on at
    Please provide the whole loop screenshot if you want me to help.
  • BB-18031745-0 Profile Picture
    101 on at
    All I do after this in the loop is add the result to an array @CU30121719-0
  • CU30121719-0 Profile Picture
    143 on at
    Well, as you like, @BB-18031745-0. No picture - no help, sorry.
  • Verified answer
    Manish Solanki Profile Picture
    15,167 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
    101 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard