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 / Document Library Itera...
Power Automate
Answered

Document Library Iteration

(0) ShareShare
ReportReport
Posted on by 179

I have a flow that runs after files are updated to a folder.  I was a bit short-sighted in developing the flow.  Our first and failed test came today when someone uploaded over 800 items and my flow ran 800 times.

 

My imagination is failing me--what trigger can I use to determine when files/folders are added that won't trigger on each item?  I only need to run the flow after all items have been added and only once on each folder.   After the initial upload, other processes take care of additions.

Categories:
  • Verified answer
    v-chengfen-msft Profile Picture
    Microsoft Employee on at

    Hi @jesslynh ,

    Do you want to avoid triggering a flow every time a file is uploaded?

     

    Here is a test for your reference:

    Set [Recurrence] to trigger every 5 minutes.

    Set [Get files (properties only)] ‘s  Filter Query:

    Created ge '@{addMinutes(formatDateTime(utcNow(),'o'),-5)}' and Created lt '@{formatDateTime(utcNow(),'o')}'

     

    In this way, you can get files uploaded by users within five minutes.

    If you want to trigger less frequently, you can set it to trigger every hour, or every day

    vchengfenmsft_0-1667447850371.png

     

     

    Best Regards

    Cheng Feng

     

  • jesslynh Profile Picture
    179 on at

    I don't want to so much avoid it triggering. I want to trigger once all files have been uploaded.  In the case I outlined above, I think I'm just going to have to run this flow daily and your code will help me grab the correct files.  Thank you. 

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 355

#2
11manish Profile Picture

11manish 336 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard