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 / Consuming files from O...
Power Automate
Answered

Consuming files from OneDrive Business

(1) ShareShare
ReportReport
Posted on by 5

I have a OneDrive for Business folder where zip files are dropped. I'm trying to monitor the path and create a trigger when a new file is created then process the zip file and delete it. I can do this when a single file is dropped. When 2 files are dropped, there always a flow failure somewhere. 

 

I suspect this is due to how I'm determining what files are available. I call the action 'List files in folder' and store the file paths and file Ids in 2 arrays to avoid changes to the receiving directory (additional files being dropped immediately after the trigger).

 

I see that the Trigger 'when a file is created (properties only) preview' returns a list of files. I can't find how to use this output. The typical 'apply to each' does not appear to provide items from the list. It seems to only provide the list.

 

Any thoughts or suggestions?

Thank you

Categories:
I have the same question (0)
  • Verified answer
    Jay-Encodian Profile Picture
    2,920 on at

    Hey @dicksonma 

    The trigger is fired for each individual file added... you should just simply process the file the trigger fired for.

    See below... I added four files at the same time and the Flow was fired four times.

    1.png

     

    1.png

    HTH

    Jay

    -------------------------------------------------------------------------

    If I have answered your question, please mark your post as Solved.

    If you like my response, please give it a Thumbs Up

  • fchopo Profile Picture
    8,003 Moderator on at

    Hello @dicksonma 

     

    I created a flow using the "When a files is created" trigger and it is working for each file I am uploading on one of my OneDrive's folder. I mean, the flow is executed individually for each uploaded file:

     

    2019-12-11 20_12_46-Create your flow _ Microsoft Power Automate.png

    I uploaded two files at the same time and the flow was executed twice:

     

    2019-12-11 20_12_46-Create your flow _ Microsoft Power Automate.png

    Hope it helps!

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
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard