cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Chran02
New Member

Sharepoint Create File - Skip for files that already exist

Hi, 
I have a daily recurring flow that:
- List files in a Google Drive folder
- Get file content from each file using id

- Create file in sharepoint using file name and file content. 

Files are added to google drive before flow runs each day, and old files remain. So flow tries to create files in sharepoint, some of which are already there. Causes flow to 'fail' as file already in folder, even though it works. But flow then turns off after 8 'fails'. 

Is it possible to add a step so that, if file already exists in sharepoint, it just skips this file? 
Or else moves folders in Google Drive folder to a subfolder after flow runs. 
Or any other suggested workaround. 

Thanks in advance!
Chris

1 ACCEPTED SOLUTION

Accepted Solutions
ChristianAbata
Community Champion
Community Champion

Yes @Chran02  you can add a parallel to control th errors like this

scope.PNG

 

inside scope action you can add send an email if you want



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

View solution in original post

2 REPLIES 2
ChristianAbata
Community Champion
Community Champion

Yes @Chran02  you can add a parallel to control th errors like this

scope.PNG

 

inside scope action you can add send an email if you want



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

Thanks a lot Christian, this worked 🙂

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 (2,908)