cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dicksonma
New Member

Consuming files from OneDrive Business

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

1 ACCEPTED SOLUTION

Accepted Solutions
Jay-Encodian
Community Champion
Community Champion

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

View solution in original post

2 REPLIES 2
Jay-Encodian
Community Champion
Community Champion

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
Super User
Super User

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!

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,481)