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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,987)