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
Super User
Super User

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
Super User
Super User

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

Thanks a lot Christian, this worked 🙂

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,341)