cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
shelleyb
Helper II
Helper II

Create folder skip if folder exist and complete remaining steps

Hello,

I have the following flow in place and I need to add a step that if the folder already exists on create new folder that it skips that section and completes the following steps after:

shelleyb_0-1632490300533.png

 

I did found Solved: Sharepoint Create File - Skip for files that alrea... - Power Platform Community where it suggested adding a scope action, is this the best way to resolve it?

1 ACCEPTED SOLUTION

Accepted Solutions
eric-cheng
Solution Sage
Solution Sage

Hi @shelleyb ,

 

No problems.

 

You dont really need the parallel action.

 

Have a look at this blog and it should clear it up.  Put your create folder and create sharing link in the try block and put everything else in the finally block.

 

ericcheng_0-1632493079220.png

 

 

Try - try doing these actions

Catch - if error occured in try, run these

Finally - run these avtions regardless of success/fail

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn

View solution in original post

4 REPLIES 4
eric-cheng
Solution Sage
Solution Sage

Hi @shelleyb ,

 

Yes, the scope and configure run after action method will work.

 

The other way is to check for the folder but will require loops depending on how many folders there are.

 

Pretty sure theres also a SP API to check if a folder exists but again, does the same job as option 1

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn

thanks @eric-cheng silly question when I add the scope as a parallel action I'll just need to add the proceeding steps on that side, so something like these 

 

shelleyb_0-1632492495994.png

 

 

eric-cheng
Solution Sage
Solution Sage

Hi @shelleyb ,

 

No problems.

 

You dont really need the parallel action.

 

Have a look at this blog and it should clear it up.  Put your create folder and create sharing link in the try block and put everything else in the finally block.

 

ericcheng_0-1632493079220.png

 

 

Try - try doing these actions

Catch - if error occured in try, run these

Finally - run these avtions regardless of success/fail

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn

View solution in original post

Perfect! thank you 🙂

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.

Top Solution Authors
Users online (2,694)