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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Optimize "apply for each"
Power Automate
Unanswered

Optimize "apply for each"

(0) ShareShare
ReportReport
Posted on by 23

I have a quite a heavy flow that i would like to optimize if possible.  My question is weather its possible to speed up the apply for each function?

Basically what happens is that i have value x from a column in a document library. I then asks it to match value x with value Y in another documentlibrary and Value x and Value Y are both unique in their libraries.. Then i ask it to preform certain actions. It works great, but takes forever. 


I come from the SQL world so for me this is action should be fast, but its not... I get a feeling it goes through and fail on all actions where there is no match, rather then retrieve a list of matches and then apply, if you get what i mean.

The flow currently looks like this: psflow.png

Categories:
I have the same question (0)
  • Verified answer
    SCTdan Profile Picture
    604 on at

    If I'm understanding what you're trying to do correctly, you should be able to speed this up using Filter Array.

     

     

    If x and y are unique, this should just spit out your single record.  

     

     

    @AnnicaTunster wrote:


    I come from the SQL world so for me this is action should be fast, but its not... I get a feeling it goes through and fail on all actions where there is no match, rather then retrieve a list of matches and then apply, if you get what i mean

     

     

    That's exactly what it does.  Definitely want to present Apply to Each with the smallest dataset possible.

     

     

    Thanks

    dan

     

    If you have found my post helpful, please mark thumbs up.

    If this post has solved your problem, please click "Accept as Solution".

    Any other questions, just ask.

     

  • AnnicaTunster Profile Picture
    23 on at

    Thank you! i thought that might be the case 🙂 I was looking into putting some kind of odata filter in the get file properties but couldnt figure out how to do it. I will do some research on how to use filter arrays, i might come back with a question if i cant sort it 🙂 Thanks!

  • AnnicaTunster Profile Picture
    23 on at

    Worked like a charm! Many thanks.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard