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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,523)