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 / How can I save results...
Power Automate
Unanswered

How can I save results from an Apply to Each loop?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I need to loop through multiple SharePoint lists because of the current limiations of Flow's SharePoint actions. My issue is then taking the results of an Apply to Each loop and then combing them into a single list to do another Apply to Each loop against.

 

The first loop is getting the List Root Folder for multiple sites. Then those results need to be filtered down and looped over to get the contents of sub folders. This seems doable, but I need to filter the JSON from List Root Folder, then combine the results to an array so I can loop over it again...

 

Can the results of an Apply to Each loop be stored as a variable?

Categories:
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    Well, currently I don't think this is achieveable.

    I think you have noticed that nested Apply to Each will not work.

    And based on what I know, there should be no function available to add the item into an array.

    Regards,

    Michael

     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 425

#2
11manish Profile Picture

11manish 323 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard