cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gjeh
Responsive Resident
Responsive Resident

If else condition on file presence

Hello All,

 

I've made a flow that updates a certain column in a sharepoint document library (library A), and after X time (call this TimerX) it updates again to update that same column to null value. This part works fine.

 

However there is a different flow that kicks off if certain action is done in before TimerX is over, this other flow will take the file and put it in a different Library (Library A - > B). Now you probably start to understand where this is going.

 

I want to make a if/else situation based on wether the file is still in Library A or it is not anymore inside Library B so i can only have my flow update the column in libraryA to null if the file is still there.

 

I've looking into the 'run after' but im not sure this will enable me to make a branching decision point.

 

As mentioned it is working now however if the file is gone the flow will show as ''failed'' (however it did complete it's task) It would be more appealing if the flow history would be entirely green.

1 ACCEPTED SOLUTION

Accepted Solutions
gjeh
Responsive Resident
Responsive Resident

No, i settled on 'failed' being a positive outcome aswel. it's not worth putting too much time into creating workarounds for things that should be native.

View solution in original post

2 REPLIES 2
JohnAageAnderse
Memorable Member
Memorable Member

Hello @gjeh 

 

Did you resolve your issue?

 

Else I would suggest you to try and get the file again just after X time. You update file only runs if get file succeeded. Add a compose action after that runs only if your update file succeeded or was skipped, thus the action will always run and the flow will terminate normally.

 

Kind regards, John

gjeh
Responsive Resident
Responsive Resident

No, i settled on 'failed' being a positive outcome aswel. it's not worth putting too much time into creating workarounds for things that should be native.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (3,096)