cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
numberfive
Level: Powered On

Help with condition for created/modified file

Hi there,

 

Beginner user. I am creating an approval flow for whenever a file in a Sharepoint document library (not list) has been either created or modified. If a file has been created or modified, it starts an approval flow to have the approver review and approve the created/modified file. Once approved, it starts a custom approval flow to notify a group of people of the approved created/modified file and asks them to download it and click "approve" to acknowledge that they've downloaded the created/modified file. 

 

My issue seems to be with the first condition. I'm not familiar with conditions, so I gave it my best shot and it's not working. Whenever I upload a file (created, in this case), it works and it goes down the "yes" path. Whenever I modify a file, however, it still goes down the "yes" path when it should be going down the "no" path. 

 

Could someone please explain how I should correctly set up this condition?

 

Power automate screenshot.pngFirst half of flow

 

power automate screenshot 2.pngSecond half of flow

 

 

 

 

3 REPLIES 3
Dual Super User
Dual Super User

Re: Help with condition for created/modified file

Hi
What I see on your first condition is 'Created' Get file (properties) output equals to 'Created' Get file (properties) output. If so, the condition is always true. I would suggest to change it into 'Created' Get file (properties) output equals to 'Modified' Get file (properties) output
Hope this helps


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Community Support Team
Community Support Team

Re: Help with condition for created/modified file

 

Hi @numberfive ,

 

You can replace one of the Created in the first Condition with Modified.

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
numberfive
Level: Powered On

Re: Help with condition for created/modified file

I have tried that before and it didn't work. I tried it again just now and it still didn't work. When I used Modified is equal to Created, any time a file was created, it went down the modified path. When a file was modified, however, it worked correctly and went down the modified path. 

 

I looked at Sharepoint and noticed that whenever I upload (create) a document, it says that it has been BOTH modified and created at the same time. But when a file is modified, only the time listed under the modified column is updated. I attached a screenshot of some examples of that. The underlined items are when I actually modified a file. Everything else was uploaded. 

 

I believe this might be creating the issue. How should I adjust the condition with that in mind?sharepoint column capture.JPG

 

 

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (10,056)