cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RaphaelBot
Level: Power Up

Stop Flow from applying to all my doclib

Hi all,

 

I designed a Flow that moves documents from a SharePoint library called "Submission Library" to another if an admin validates it by changing the value of a Choice column named "Validation" from "In Progress" to "Validated".

The documents then move to different libraries depending on their "Library" column value. If "Library" column says "Library 1" then it move to Library 1 and so on.

 

My problem is that when several files are awaiting validation in the "Submission Library" if on is validated, they are ALL move as if they were validated even if they are not.

 

Do you have any idea how to resolve that ?

 

Here is part of the Flow (sorry half is in French, I hope it won't be an issue) :

 

Capture.PNG

 

Thanks a lot,

Best regards,

Raphael

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Stop Flow from applying to all my doclib

Are you using the same collection of documents from the dyanmic data in your inner loop that you use in your outer loop?  If you are then that's the problem.  Because then you are processing all the documents to move them IF any one document meets the criteria.  Instead of having a second loop the Yes side of the condition should proccess just the document that was tested.



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

1 REPLY 1
Dual Super User
Dual Super User

Re: Stop Flow from applying to all my doclib

Are you using the same collection of documents from the dyanmic data in your inner loop that you use in your outer loop?  If you are then that's the problem.  Because then you are processing all the documents to move them IF any one document meets the criteria.  Instead of having a second loop the Yes side of the condition should proccess just the document that was tested.



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

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,375)