Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Automated save attachment from sharepoint list to specified folder on sharepoint, and replace file if the same file is exist

(0) ShareShare
ReportReport
Posted on by

I want to build a automated flow with triger "When an item is created" to save all attachment from sharepoint list to the specified folder on sharepoint with condition :

 

if the same file is exist, then replaced it

if file not exist, then create it

  • v-mengmli-msft Profile Picture
    on at
    Re: Automated save attachment from sharepoint list to specified folder on sharepoint, and replace file if the same file is exist

    Please show me the setting of Get attachments in your flow.

    vmengmlimsft_0-1700718181606.png

     

  • wachid Profile Picture
    on at
    Re: Automated save attachment from sharepoint list to specified folder on sharepoint, and replace file if the same file is exist

    Flow run failed

    wachid_0-1700705122084.png



    wachid_1-1700705190169.png

     

  • v-mengmli-msft Profile Picture
    on at
    Re: Automated save attachment from sharepoint list to specified folder on sharepoint, and replace file if the same file is exist

    Hi @wachid ,

     

    As for how to replace file with same name, it is equal to update file with same name.

    Please try this:

    sub1 is name of my destination folder.

    vmengmlimsft_1-1700544439869.png

    vmengmlimsft_2-1700544521688.png

     

    vmengmlimsft_3-1700544824793.png

    vmengmlimsft_4-1700544976912.png

    vmengmlimsft_6-1700545204604.png

     

    Another method is delete file first and create file when condition is false.

     

     

    Thanks for reading!

    Rimmon

     

  • michael0808 Profile Picture
    304 on at
    Re: Automated save attachment from sharepoint list to specified folder on sharepoint, and replace file if the same file is exist

    This is a very basic flow that will definately need some work. But you can tweak it to your needs.

    michael0808_0-1700536589809.png

    michael0808_1-1700536603797.png

    michael0808_2-1700536625671.png

     

    I hope this points you in the right direction.

     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492