Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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.

  • jesslynh Profile Picture
    179 on at
    Re: Document Library Iteration

    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. 

  • Verified answer
    v-chengfen-msft Profile Picture
    on at
    Re: Document Library Iteration

    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

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1