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

Perfect! thank you 🙂

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (2,237)