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

Community site session details

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

I have the same question (0)
  • Verified answer
    Jay-Encodian Profile Picture
    2,920 on at
    Re: Consuming files from OneDrive Business

    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
    Re: Consuming files from OneDrive Business

    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

Coming soon: forum hierarchy changes

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

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 544 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 482 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 287

Last 30 days Overall leaderboard