web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Automated save attachm...
Power Automate
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

Categories:
I have the same question (0)
  • michael0808 Profile Picture
    304 on at

    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.

     

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    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

     

  • wachid Profile Picture
    on at

    Flow run failed

    wachid_0-1700705122084.png



    wachid_1-1700705190169.png

     

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

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

    vmengmlimsft_0-1700718181606.png

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 862

#2
Valantis Profile Picture

Valantis 738

#3
Haque Profile Picture

Haque 553

Last 30 days Overall leaderboard