Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Moving network share files to Sharepoint while avoiding overwrites

(0) ShareShare
ReportReport
Posted on by 10

Hi! I have a flow that monitors a network folder and copies any new files to a Sharepoint folder. It works great, I used a template from Microsoft. I'm having two problems with it. First, if a file exists in the destination with the same name, the flow overwrites the existing file, I'd like the new file to be renamed, appending the name with consecutive numbers or the date or something like that and not overwrite. Second, I'd like to delete the source file after the copy action. Here is my flow.

Flow.png

  • momalle1 Profile Picture
    10 on at
    Re: Moving network share files to Sharepoint while avoiding overwrites

    FullFlow.jpg

  • momalle1 Profile Picture
    10 on at
    Re: Moving network share files to Sharepoint while avoiding overwrites

    Thanks Tristan, it took a while, but I finally got it using your separate landing tip!

  • momalle1 Profile Picture
    10 on at
    Re: Moving network share files to Sharepoint while avoiding overwrites

    Thank you Tristan, I will get back to you!

  • Tristan_D Profile Picture
    386 on at
    Re: Moving network share files to Sharepoint while avoiding overwrites

    Hi @momalle1 !

    You are actually almost there ! I would suggest you to use 2 libraries, one for the "landing" another one which will be the "final destination" one.

    You would have to create your file, copy it using the most relevant option for you : 

    Tristan_D_0-1713547320182.png


    Then deleting the file from the landing library :

    Tristan_D_1-1713547340448.png



    Let me know if it helps.

    T

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow